going to start messing with dnspacket.js, so I wanted to commit

This commit is contained in:
Daplie 2017-01-18 17:07:21 -07:00
parent 7a2fc325ed
commit 28cfda23a6
3 changed files with 4 additions and 0 deletions

0
dig Normal file
View File

View File

@ -18,6 +18,8 @@ var SECTION_NAMES = [
];
var ALL_SECTION_NAMES = ['question'].concat(SECTION_NAMES);
// parses through the flags
function parseFlags(val, packet) {
packet.header.qr = (val & 0x8000) >> 15;
packet.header.opcode = (val & 0x7800) >> 11;

View File

@ -53,6 +53,8 @@ return binString;
var str = binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100');
console.log(str);
parse
//translates to "Aren't"