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
Unknown Object (File)
Mon, Dec 9, 5:05 AM
Unknown Object (File)
Wed, Dec 4, 4:25 AM
Unknown Object (File)
Sat, Nov 30, 5:26 PM
Unknown Object (File)
Sat, Nov 30, 5:07 PM
Unknown Object (File)
Wed, Nov 27, 8:34 PM
Unknown Object (File)
Nov 25 2024, 12:48 PM
Unknown Object (File)
Nov 14 2024, 3:07 PM
Unknown Object (File)
Nov 12 2024, 6:20 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60031
Build 56915: arc lint + arc unit

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.