Page MenuHomeFreeBSD

ping tests: fix for scapy-2.6.0
ClosedPublic

Authored by kp on Oct 16 2024, 8:09 AM.
Tags
None
Referenced Files
F108747229: D47151.id144998.diff
Mon, Jan 27, 4:54 PM
F108746093: D47151.id144981.diff
Mon, Jan 27, 4:47 PM
Unknown Object (File)
Sun, Jan 26, 11:16 PM
Unknown Object (File)
Sat, Jan 11, 11:42 AM
Unknown Object (File)
Sat, Jan 11, 9:15 AM
Unknown Object (File)
Sat, Jan 11, 5:53 AM
Unknown Object (File)
Dec 27 2024, 4:59 PM
Unknown Object (File)
Dec 27 2024, 4:41 PM
Subscribers

Details

Summary

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
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Oct 16 2024, 8:09 AM
This revision is now accepted and ready to land.Oct 16 2024, 1:11 PM

The unk-40 below also has an unknown option, but is not tested in this file (tested on the atf-sh based test).
There are a couple other minor fixes I would like to add to this file, but this is just about making the tests pass.
Thanks for the heads up!

This revision was automatically updated to reflect the committed changes.