You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ab543c4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(protocols): dissect LINKTYPE_RAW by version nibble; add the BSD loopback layer for LINKTYPE_NULL/LOOP (#1502, #1574)
- Frame and PCAPNG dispatch LINKTYPE_RAW (101) data as IPV4 or IPV6 by the
version nibble of its first octet (_dispatch_linktype), unless RAW itself
is registered; any other version stays Raw.
- New Loopback link layer (protocols/link, schema/link, data/link): a 4-octet
address family, big-endian under LINKTYPE_LOOP (108) and inferred under
LINKTYPE_NULL (0) (family_byteorder). The byte order is kept in info and
read back by from_data, so a rebuild returns the same info. 2 goes to IPv4
and 24/28/30 to IPv6 through its own __proto__. Registered for NULL and
LOOP in both tables, exported, and documented.
- dpkt engine: RAW by version nibble; NULL/LOOP through a dpkt Loopback,
cached per base/IP/IP6 class and link type, that reads the family as
pcapkit does and names its ip/ip6 payload.
- Delete Gap(1502): all four labels now agree, many_interfaces.pcapng's two
NULL frames included (36 datagrams in default, scapy and dpkt).
- Dispatch generator pins the new entries and walks Loopback.__proto__.
- New tests for RAW, Loopback (7 families x 2 byte orders x 3 link-type
hints, info-exact from_data, PCAP and PCAP-NG) and the dpkt engine.
Closes#1502Closes#1574
0 commit comments