diff options
Diffstat (limited to 'src/packet/packet.rs')
| -rw-r--r-- | src/packet/packet.rs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/packet/packet.rs b/src/packet/packet.rs index 6a81c4d..7b9768a 100644 --- a/src/packet/packet.rs +++ b/src/packet/packet.rs @@ -802,6 +802,7 @@ mod tests { checksum: 0xc352, source_address: Ipv4Addr::new(192, 168, 0, 101), dest_address: Ipv4Addr::new(121, 14, 154, 93), + options: None, }; let ipv6_hdr = IPv6Header { version: 6, @@ -1060,6 +1061,7 @@ mod tests { checksum: 0x9293, source_address: Ipv4Addr::new(10, 118, 10, 1), dest_address: Ipv4Addr::new(10, 118, 10, 2), + options: None, }, &bytes[42..] ) @@ -1259,6 +1261,7 @@ mod tests { checksum: 0x0000, source_address: Ipv4Addr::new(18, 3, 2, 3), dest_address: Ipv4Addr::new(18, 3, 1, 100), + options: None, }, &bytes[42..] ) @@ -1506,6 +1509,7 @@ mod tests { checksum: 0xd4ea, source_address: Ipv4Addr::new(1, 1, 1, 1), dest_address: Ipv4Addr::new(2, 2, 2, 2), + options: None, }, &bytes[74..] ) @@ -1691,6 +1695,7 @@ mod tests { checksum: 0x09ce, source_address: Ipv4Addr::new(210, 77, 88, 163), dest_address: Ipv4Addr::new(59, 66, 4, 50), + options: None, }, &bytes[34..] ) @@ -2070,6 +2075,7 @@ mod tests { checksum: 0x1148, source_address: Ipv4Addr::new(69, 67, 35, 146), dest_address: Ipv4Addr::new(41, 202, 46, 110), + options: None, }, &bytes[42..] ) @@ -2090,6 +2096,7 @@ mod tests { checksum: 0xde84, source_address: Ipv4Addr::new(10, 10, 100, 25), dest_address: Ipv4Addr::new(10, 10, 101, 2), + options: None, }, &bytes[62..] ) @@ -2277,6 +2284,7 @@ mod tests { checksum: 0xa6d9, source_address: Ipv4Addr::new(10, 31, 0, 1), dest_address: Ipv4Addr::new(10, 34, 0, 1), + options: None, }, &bytes[42..] ) @@ -2484,6 +2492,7 @@ mod tests { checksum: 0xecc9, source_address: Ipv4Addr::new(192, 168, 0, 10), dest_address: Ipv4Addr::new(192, 168, 0, 20), + options: None, }, &bytes[60..] ) @@ -2751,6 +2760,7 @@ mod tests { checksum: 0xcc48, source_address: Ipv4Addr::new(10, 16, 131, 196), dest_address: Ipv4Addr::new(112, 49, 26, 208), + options: None, }, &bytes[102..] ) @@ -2956,6 +2966,7 @@ mod tests { checksum: 0x0127, source_address: Ipv4Addr::new(72, 205, 54, 70), dest_address: Ipv4Addr::new(86, 106, 164, 150), + options: None, }, &bytes[34..] ) @@ -2998,6 +3009,7 @@ mod tests { checksum: 0x685b, source_address: Ipv4Addr::new(10, 10, 11, 2), dest_address: Ipv4Addr::new(10, 10, 13, 2), + options: None, }, &bytes[58..] ) @@ -3040,6 +3052,7 @@ mod tests { checksum: 0xb32b, source_address: Ipv4Addr::new(10, 10, 25, 1), dest_address: Ipv4Addr::new(192, 168, 1, 2), + options: None, }, &bytes[82..] ) @@ -3204,6 +3217,7 @@ mod tests { checksum: 0x970d, source_address: Ipv4Addr::new(172, 16, 0, 100), dest_address: Ipv4Addr::new(172, 16, 0, 254), + options: None, }, &bytes[34..] ) @@ -3400,6 +3414,7 @@ mod tests { checksum: 0x397d, source_address: Ipv4Addr::new(20, 0, 0, 2), dest_address: Ipv4Addr::new(20, 0, 0, 1), + options: None, }, &bytes[34..] ) @@ -3453,6 +3468,7 @@ mod tests { checksum: 0x2f2c, source_address: Ipv4Addr::new(17, 1, 1, 122), dest_address: Ipv4Addr::new(40, 0, 0, 2), + options: None, }, &bytes[70..] ) @@ -3670,6 +3686,7 @@ mod tests { checksum: 0xd916, source_address: Ipv4Addr::new(172, 16, 0, 100), dest_address: Ipv4Addr::new(172, 16, 0, 254), + options: None, }, &bytes[34..] ) @@ -3736,6 +3753,7 @@ mod tests { checksum: 0x3a6f, source_address: Ipv4Addr::new(172, 16, 2, 100), dest_address: Ipv4Addr::new(10, 0, 6, 229), + options: None, }, &bytes[74..] ) @@ -4061,7 +4079,8 @@ mod tests { protocol: IPProtocol::TCP, checksum: 0xc91f, source_address: Ipv4Addr::new(91, 185, 14, 33), - dest_address: Ipv4Addr::new(100, 65, 55, 0) + dest_address: Ipv4Addr::new(100, 65, 55, 0), + options: None, }, &bytes[46..] ) |
