Skip to content
New issue

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

Bad Argument exception while parsing some mDNS packets. #14

Open
kmpm opened this issue Sep 25, 2014 · 0 comments
Open

Bad Argument exception while parsing some mDNS packets. #14

kmpm opened this issue Sep 25, 2014 · 0 comments

Comments

@kmpm
Copy link

kmpm commented Sep 25, 2014

I was trying to use your library to parse mdns packets but I failed on one of them.
It comes from a NetGear ReadyNAS as a response on a service query.

I don't know if mDNS is in the scope for this library but I shure hope so.

TypeError: Bad argument.
    at Buffer.toString (buffer.js:419:26)
    at BufferCursor.toString (/home/code/node_modules/native-dns-packet/node_modules/buffercursor/buffercursor.js:148:21)
    at nameUnpack (/home/code/node_modules/native-dns-packet/packet.js:81:17)
    at parseRR (/home/code/node_modules/native-dns-packet/packet.js:508:14)
    at Function.Packet.parse (/home/code/node_modules/native-dns-packet/packet.js:662:17)
0000 8400 0000 000d 0000 0000 095f 7365
7276 6963 6573 075f 646e 732d 7364 045f
7564 7005 6c6f 6361 6c00 000c 0001 0000
0e0f 001b 135f 7472 616e 736d 6973 7369
6f6e 7365 7276 6572 045f 7463 70c0 23c0
0c00 0c00 0100 000e 0f00 0704 5f73 7368
c048 c00c 000c 0001 0000 0e0f 0009 065f
6874 7470 73c0 48c0 0c00 0c00 0100 000e
0f00 0f0c 5f77 6f72 6b73 7461 7469 6f6e
c048 c00c 000c 0001 0000 0e0f 000e 0b5f
6166 706f 7665 7274 6370 c048 c00c 000c
0001 0000 0e0f 000c 095f 7265 6164 796e
6173 c048 c00c 000c 0001 0000 0e0f 0007
045f 6674 70c0 48c0 0c00 0c00 0100 000e
0f00 120f 5f70 646c 2d64 6174 6173 7472
6561 6dc0 48c0 0c00 0c00 0100 000e 0f00
0c09 5f73 6674 702d 7373 68c0 48c0 0c00
0c00 0100 000e 0f00 0e0b 5f67 6f6f 676c
6563 6173 74c0 48c0 0c00 0c00 0100 000e
0f00 0704 5f73 6d62 c048 c00c 000c 0001
0000 0e0f 000e 0b5f 7564 6973 6b73 2d73
7368 c048 c00c 000c 0001 0000 0e0f 0008
055f 6874 7470 c048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant