Page MenuHomeFreeBSD

ping tests: fix for scapy-2.6.0
ClosedPublic

Authored by kp on Wed, Oct 16, 8:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 1:25 AM
Unknown Object (File)
Mon, Oct 28, 3:24 AM
Unknown Object (File)
Sat, Oct 26, 11:23 PM
Unknown Object (File)
Wed, Oct 23, 3:17 PM
Unknown Object (File)
Mon, Oct 21, 1:57 AM
Unknown Object (File)
Mon, Oct 21, 1:16 AM
Unknown Object (File)
Wed, Oct 16, 3: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.Wed, Oct 16, 8:09 AM
This revision is now accepted and ready to land.Wed, Oct 16, 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.