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
fix(ipv4): TS zeroes a trailing 1-3 octet partial slot on rebuild #1392
Describe the bug
A TS option whose length leaves 1–3 octets after the last whole slot has those octets zeroed on rebuild. _read_opt_ts does no (length - 4) % 4 check, unlike LSR, SSR and RR, which reject such lengths with ProtocolError. The tail sits in the zero-packing PaddingField (schema/internet/ipv4.py:338-346) and _make_opt_ts never carries it (ipv4.py:1670). #1390 fixes the whole-slot case, but at its head a15053649 this one still reproduces, because its remaining field holds whole words only.
To Reproduce from_data round trip, option bytes in → out:
Activity
JarryShaw commentedon Oct 8, 2026
Unblocked: #1390 has merged. One worker is taking #1391, #1392 and #1393 together, because all three edit the IPv4 TS and SEC option code.