diff options
| author | luwenpeng <[email protected]> | 2023-09-19 15:21:20 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2023-09-20 10:43:38 +0800 |
| commit | ae80f71eba09d4381bb070d87bcd2aa6173166c6 (patch) | |
| tree | 15a9adedfffa31717d8b27837fc13801ff0285d5 /src/protocol/ip.rs | |
| parent | cb674f9e168b6e709136e17a5bc87d3925c6f479 (diff) | |
[feature] Support GREv0/GREv1 Decode
Diffstat (limited to 'src/protocol/ip.rs')
| -rw-r--r-- | src/protocol/ip.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol/ip.rs b/src/protocol/ip.rs index c9b4f53..1ff15e3 100644 --- a/src/protocol/ip.rs +++ b/src/protocol/ip.rs @@ -29,6 +29,7 @@ pub enum IPProtocol { IPV6, IPV6ROUTING, IPV6FRAGMENT, + GRE, ESP, AUTH, ICMP6, @@ -64,6 +65,7 @@ impl From<u8> for IPProtocol { 41 => IPProtocol::IPV6, 43 => IPProtocol::IPV6ROUTING, // IPv6 Routing Header 44 => IPProtocol::IPV6FRAGMENT, // IPv6 Fragment Header + 47 => IPProtocol::GRE, // GRE encapsulation [RFC2784][RFC2890] 50 => IPProtocol::ESP, // Encap Security Payload [RFC4303] 51 => IPProtocol::AUTH, // Authentication Header [RFC4302] 58 => IPProtocol::ICMP6, |
