diff options
| author | luwenpeng <[email protected]> | 2023-09-08 15:16:17 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2023-09-08 15:24:43 +0800 |
| commit | 3c6fc844b5e15ae85e08f8bee18e54c30f33d988 (patch) | |
| tree | a25d85e25a08b3f9b2309549400ea473dd6442c7 /src/protocol/vlan.rs | |
| parent | 16066bd3dc9f38e21cf8247b4b913c5bcc59d57e (diff) | |
[feature] Support ICMPv6 Decode
Diffstat (limited to 'src/protocol/vlan.rs')
| -rw-r--r-- | src/protocol/vlan.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol/vlan.rs b/src/protocol/vlan.rs index a6b7202..7f64780 100644 --- a/src/protocol/vlan.rs +++ b/src/protocol/vlan.rs @@ -83,8 +83,8 @@ mod tests { assert_eq!(VlanHeader::decode(&bytes), Ok((LAST_SLICE, expectation))); // example - let vlan = VlanHeader::decode(&bytes); - if let Ok((payload, header)) = vlan { + let result = VlanHeader::decode(&bytes); + if let Ok((payload, header)) = result { println!("return: {:?}, payload: {}", header, payload.len()); } else { println!("return: Incomplete data"); |
