Open evverx opened 2 weeks ago
It can be fixed by replacing 18
with 14
and so on but there is another issue because it isn't possible to build the option with wakeup_mac
without having to specify the length explicitly. I'm not sure how to fix it yet.
Brief description
https://datatracker.ietf.org/doc/html/draft-cheshire-edns0-owner-option-01 refers to the Len field in https://datatracker.ietf.org/doc/html/draft-cheshire-edns0-owner-option-01#section-3.2 but it's off by 4 there because the Len field should be the size of the option data (without the "Opt" and "Len" fields: https://datatracker.ietf.org/doc/html/rfc6891#section-6.1.2)
Scapy version
6b26acebc177cc439c3df682ba3400414f1ae677
Python version
3.12.3
Operating system
6.8.11-300.fc40.x86_64
Additional environment information
No response
How to reproduce
Actual result
Expected result
Related resources
Here's how mDNSResponder parses it: https://github.com/apple-oss-distributions/mDNSResponder/blob/d5029b5dff8aa59d1fc07ed796e994106ef58dee/mDNSCore/mDNSEmbeddedAPI.h#L914-L917
https://github.com/apple-oss-distributions/mDNSResponder/blob/d5029b5dff8aa59d1fc07ed796e994106ef58dee/mDNSCore/DNSCommon.c#L3601-L3617