mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
ping tests: fix for scapy-2.6.0
Scapy 2.6.0 now appears to parse the IPOption during construction, and it then gets confused at a single-byte option. IP Options typically contain at least a 1 byte type and 1 byte length. Avoid this by just returning the raw bytes, rather than an IPOption object. MFC after: 1 week Reviewed by: Jose Luis Duran <jlduran@gmail.com> Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D47151
This commit is contained in:
parent
bf8d4cfe34
commit
2926c25942
@ -113,7 +113,7 @@ def generate_ip_options(opts):
|
||||
options = sc.IPOption_SSRR(length=3, routers=routers_zero)
|
||||
elif opts == "unk":
|
||||
ToolsHelper.set_sysctl("net.inet.ip.process_options", 0)
|
||||
options = sc.IPOption(b"\x9f")
|
||||
options = b"\x9f"
|
||||
elif opts == "unk-40":
|
||||
ToolsHelper.set_sysctl("net.inet.ip.process_options", 0)
|
||||
options = sc.IPOption(b"\x9f" * 40)
|
||||
|
Loading…
Reference in New Issue
Block a user