pcap: preserve capture and protocol source history

Port relevant PCAP implementation and regression snapshots from Craft Anything e3d95b43000e947e97abb6c4601644dc1e18c388.
This commit is contained in:
Afloat authored and Dylan M. Taylor committed 2026-11-17 08:37:44 -05:00
1 parent f8837751e3
commit 013cc27059
1 file changed
+12
+12
View File
@@ -1304,6 +1304,18 @@ mod tests {
classic_link_word(0x24000001, true, true, 4);
}
#[test]
fn fcs_bits_are_masked_in_big_endian_nanosecond_files() {
classic_link_word(0x24000001, false, true, 4);
classic_link_word(1, false, true, 0);
}
#[test]
fn fcs_bits_do_not_change_big_endian_nanosecond_raw_ip() {
classic_link_word(0x24000065, false, true, 4);
classic_link_word(101, false, true, 0);
}
#[test]
fn a_one_word_fcs_length_is_masked() {
classic_link_word(0x14000001, true, false, 2);