We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multicast DNS packets have at least 2 characteristics which packet.js does not deal with:
if (packet.header.opcode === 0 && // Standard query packet.header.qr === 1 && // Response packet.question.length === 0) { // Empty question can occur in mDNS return PARSE_RESOURCE_RECORD; }
var qnum = packet.question.length; while (qnum > 0) { var val = {}; val.name = nameUnpack(msg); val.type = msg.readUInt16BE(); val.class = msg.readUInt16BE(); packet.question[packet.question.length - qnum] = val; qnum -= 1; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Multicast DNS packets have at least 2 characteristics which packet.js does not deal with:
I worked around this by adding an escape at the beginning of parseQuestion():
I hacked up a quick loop in parseQuestion() and removed the assert:
The text was updated successfully, but these errors were encountered: