Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166709291
D47160.id145003.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
960 B
Referenced Files
None
Subscribers
None
D47160.id145003.diff
View Options
diff --git a/sbin/ping/tests/test_ping.py b/sbin/ping/tests/test_ping.py
--- a/sbin/ping/tests/test_ping.py
+++ b/sbin/ping/tests/test_ping.py
@@ -85,11 +85,11 @@
]
routers_zero = [0, 0, 0, 0, 0, 0, 0, 0, 0]
if opts == "EOL":
- options = sc.IPOption(b"\x00")
+ options = sc.IPOption_EOL()
elif opts == "NOP":
- options = sc.IPOption(b"\x01")
+ options = sc.IPOption_NOP()
elif opts == "NOP-40":
- options = sc.IPOption(b"\x01" * 40)
+ options = sc.IPOption_NOP() * 40
elif opts == "RR":
ToolsHelper.set_sysctl("net.inet.ip.process_options", 0)
options = sc.IPOption_RR(pointer=40, routers=routers)
@@ -116,7 +116,7 @@
options = b"\x9f"
elif opts == "unk-40":
ToolsHelper.set_sysctl("net.inet.ip.process_options", 0)
- options = sc.IPOption(b"\x9f" * 40)
+ options = b"\x9f" * 40
else:
options = ""
return options
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 16, 7:51 PM (17 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36801696
Default Alt Text
D47160.id145003.diff (960 B)
Attached To
Mode
D47160: ping: tests: Cleanup IPOption()s
Attached
Detach File
Event Timeline
Log In to Comment