Describe the bug
Two PCAP-NG packet blocks still lose octets on rebuild.
To Reproduce
Expected behavior
Byte-exact per the every-round-trip ruling: keep the octets as captured.
Found by the #1412 cross-review; I reproduced the SPB case. Blocked until #1412 merges.
Describe the bug
Two PCAP-NG packet blocks still lose octets on rebuild.
original_lenloses the excess. fix(pcapng): a Simple Packet Block longer than the snaplen is silently truncated on parse #1384 covers only the snaplen case.To Reproduce
original_len=3and 8 data octets, on fix(pcapng)!: PCAP-NG round-trip follow-ups (#1382, #1383, #1384, #1401, #1405, #1406) #1412's head0514d5c30: 24 octets in, 20 out (abcdefghbecomesabc\0).main.Expected behavior
Byte-exact per the every-round-trip ruling: keep the octets as captured.
Found by the #1412 cross-review; I reproduced the SPB case. Blocked until #1412 merges.