Hi,
I am using gopacket for parsing mDNS packet.
following things are missing in the decode logic of mDNS packets:
1. cache flush field is not present in DNSResourceRecord struct
2. cache flush bit and class is combine as Class struct member.

Due to point 2, Class variable will be getting invalid value if cache bit 
is set for this record.
For example:
Assume,
if Class of the record is IN and cache flush is not set then Class struct 
variable will have value of 0x0001
If Class of record is IN and cache flush is SET then class struct will have 
value of 0x8001
When we decode this packet DNSResourceRecord.Class will have 0x8001 and 
this is invalid.


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/138faac5-9d90-47dd-93da-bd4a8ab5b7d5o%40googlegroups.com.

Reply via email to