-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
Brief description
According to the description in rfc7871, the length of the ADDRESS field depends on the SOURCE PREFIX-LENGTH field.
Scapy version
2.7.0
Python version
3.13.5
Operating system
Linux 5.4.143
Additional environment information
No response
How to reproduce
I have 1 minimal reproducible code snippet here:
from scapy.layers.dns import EDNS0ClientSubnet
b = EDNS0ClientSubnet(source_plen=23, address='101.132.0.0')
# actual: b'\x00\x08\x00\x06\x00\x01\x17\x00e\x84'
# expected: b'\x00\x08\x00\x07\x00\x01\x17\x00e\x84\x00'
print(bytes(b))Actual result
No response
Expected result
No response
Related resources
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
