diff options
| author | luwenpeng <[email protected]> | 2024-06-04 15:48:34 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-06-04 15:48:34 +0800 |
| commit | 8c4f4c9f72ef4e4fc51514b899d53cd13d57afa7 (patch) | |
| tree | ac4d375420ae3598cba1273dcb0d3fefc33e00f5 /include | |
| parent | ae2e36b382bfea50c696903155fba6f6f3f31d1a (diff) | |
Add support for parsing IP Authentication Header
Diffstat (limited to 'include')
| -rw-r--r-- | include/stellar/packet.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/stellar/packet.h b/include/stellar/packet.h index d8d94c7..b867b6f 100644 --- a/include/stellar/packet.h +++ b/include/stellar/packet.h @@ -27,22 +27,23 @@ enum layer_type // L3 -- network layer LAYER_TYPE_IPV4 = 1 << 8, LAYER_TYPE_IPV6 = 1 << 9, - LAYER_TYPE_L3 = (LAYER_TYPE_IPV4 | LAYER_TYPE_IPV6), + LAYER_TYPE_IPAH = 1 << 10, + LAYER_TYPE_L3 = (LAYER_TYPE_IPV4 | LAYER_TYPE_IPV6 | LAYER_TYPE_IPAH), // L3 -- tunnel - LAYER_TYPE_GRE = 1 << 10, + LAYER_TYPE_GRE = 1 << 11, LAYER_TYPE_L3_TUN = (LAYER_TYPE_GRE), // L4 -- transport layer - LAYER_TYPE_UDP = 1 << 11, - LAYER_TYPE_TCP = 1 << 12, - LAYER_TYPE_ICMP = 1 << 13, - LAYER_TYPE_ICMP6 = 1 << 14, + LAYER_TYPE_UDP = 1 << 12, + LAYER_TYPE_TCP = 1 << 13, + LAYER_TYPE_ICMP = 1 << 14, + LAYER_TYPE_ICMP6 = 1 << 15, LAYER_TYPE_L4 = (LAYER_TYPE_UDP | LAYER_TYPE_TCP | LAYER_TYPE_ICMP | LAYER_TYPE_ICMP6), // L4 -- tunnel - LAYER_TYPE_VXLAN = 1 << 15, - LAYER_TYPE_GTPV1_U = 1 << 16, + LAYER_TYPE_VXLAN = 1 << 16, + LAYER_TYPE_GTPV1_U = 1 << 17, // ALL LAYER_TYPE_ALL = (LAYER_TYPE_L2 | LAYER_TYPE_L2_TUN | LAYER_TYPE_L3 | LAYER_TYPE_L3_TUN | LAYER_TYPE_L4 | LAYER_TYPE_VXLAN | LAYER_TYPE_GTPV1_U), |
