VBVX 0.1.0
Header-only C++23 library for safe, zero-copy parsing of packet buffers.
Loading...
Searching...
No Matches
ip_protocol.hxx
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5namespace vbvx {
6
13enum class IpProtocol : uint8_t {
14 HOPOPT = 0,
15 ICMPv4 = 1,
16 IGMP = 2,
17 GGP = 3,
18 IPv4 = 4,
19 ST = 5,
20 TCP = 6,
21 CBT = 7,
22 EGP = 8,
23 IGP = 9,
25 NVP_II = 11,
26 PUP = 12,
27 ARGUS = 13,
28 EMCON = 14,
29 XNET = 15,
30 CHAOS = 16,
31 UDP = 17,
32 MUX = 18,
34 HMP = 20,
35 PRM = 21,
36 XNS_IDP = 22,
37 TRUNK_1 = 23,
38 TRUNK_2 = 24,
39 LEAF_1 = 25,
40 LEAF_2 = 26,
41 RDP = 27,
42 IRTP = 28,
43 ISO_TP4 = 29,
44 NETBLT = 30,
45 MFE_NSP = 31,
47 DCCP = 33,
49 IDPR = 35,
50 XTP = 36,
51 DDP = 37,
53 TP_PLUS = 39,
54 IL = 40,
55 IPv6 = 41,
56 SDRP = 42,
59 IDRP = 45,
60 RSVP = 46,
61 GRE = 47,
62 DSR = 48,
63 BNA = 49,
64 ESP = 50,
65 AH = 51,
66 I_NLSP = 52,
67 SWIPE = 53,
68 NARP = 54,
70 TLSP = 56,
71 SKIP = 57,
72 ICMPv6 = 58,
77 CFTP = 62,
81 RVD = 66,
82 IPPC = 67,
84 SAT_MON = 69,
85 VISA = 70,
86 IPCV = 71,
87 CPNX = 72,
88 CPHB = 73,
89 WSN = 74,
90 PVP = 75,
92 SUN_ND = 77,
93 WB_MON = 78,
95 ISO_IP = 80,
96 VMTP = 81,
98 VINES = 83,
99 IPTM = 84,
101 DGP = 86,
102 TCF = 87,
103 EIGRP = 88,
106 LARP = 91,
107 MTP = 92,
108 AX25 = 93,
109 IPIP = 94,
110 MICP = 95,
111 SCC_SP = 96,
113 ENCAP = 98,
115 GMTP = 100,
116 IFMP = 101,
117 PNNI = 102,
118 PIM = 103,
119 ARIS = 104,
120 SCPS = 105,
121 QNX = 106,
122 A_N = 107,
123 IPCOMP = 108,
124 SNP = 109,
127 VRRP = 112,
128 PGM = 113,
129 ANY_0HOP = 114,
130 L2TP = 115,
131 DDX = 116,
132 IATP = 117,
133 STP = 118,
134 SRP = 119,
135 UTI = 120,
136 SMP = 121,
137 SM = 122,
138 PTP = 123,
139 ISIS = 124,
140 FIRE = 125,
141 CRTP = 126,
142 CRUDP = 127,
143 SSCOPMCE = 128,
144 IPLT = 129,
145 SPS = 130,
146 PIPE = 131,
147 SCTP = 132,
148 FC = 133,
150 MOBILITY = 135,
151 UDPLite = 136,
153 MANET = 138,
154 HIP = 139,
155 SHIM6 = 140,
156 WESP = 141,
157 ROHC = 142,
158 Ethernet = 143,
159 AGGFRAG = 144,
160 NSH = 145,
161 Homa = 146,
162 BIT_EMU = 147,
163
164 // 148-252 unassigned
168};
169
170} // namespace vbvx
Definition arp.hxx:11
@ SKIP
Definition icmp4.hxx:46
@ Ethernet
Definition arp.hxx:14
@ IPv4
Definition ether.hxx:20
@ IPv6
Definition ether.hxx:23
IpProtocol
IP protocol (Next Header) numbers.
Definition ip_protocol.hxx:13
@ NVP_II
Definition ip_protocol.hxx:25
@ HMP
Definition ip_protocol.hxx:34
@ WSN
Definition ip_protocol.hxx:89
@ SECURE_VMTP
Definition ip_protocol.hxx:97
@ MTP
Definition ip_protocol.hxx:107
@ ETHERIP
Definition ip_protocol.hxx:112
@ EXPERIMENTATION_2
Definition ip_protocol.hxx:166
@ XNET
Definition ip_protocol.hxx:29
@ QNX
Definition ip_protocol.hxx:121
@ HOST_INTERNAL
Definition ip_protocol.hxx:76
@ IPIP
Definition ip_protocol.hxx:109
@ IPCOMP
Definition ip_protocol.hxx:123
@ GMTP
Definition ip_protocol.hxx:115
@ DCN_MEAS
Definition ip_protocol.hxx:33
@ NSH
Definition ip_protocol.hxx:160
@ LEAF_2
Definition ip_protocol.hxx:40
@ MUX
Definition ip_protocol.hxx:32
@ ENCAP
Definition ip_protocol.hxx:113
@ EXPERIMENTATION_1
Definition ip_protocol.hxx:165
@ IDPR_CMTP
Definition ip_protocol.hxx:52
@ MIN_IPV4
Definition ip_protocol.hxx:69
@ MANET
Definition ip_protocol.hxx:153
@ CFTP
Definition ip_protocol.hxx:77
@ MICP
Definition ip_protocol.hxx:110
@ IPv6_Route
Definition ip_protocol.hxx:57
@ AX25
Definition ip_protocol.hxx:108
@ BIT_EMU
Definition ip_protocol.hxx:162
@ DSR
Definition ip_protocol.hxx:62
@ LEAF_1
Definition ip_protocol.hxx:39
@ MFE_NSP
Definition ip_protocol.hxx:45
@ DISTRIBUTED_FS
Definition ip_protocol.hxx:83
@ TP_PLUS
Definition ip_protocol.hxx:53
@ ARGUS
Definition ip_protocol.hxx:27
@ PTP
Definition ip_protocol.hxx:138
@ I_NLSP
Definition ip_protocol.hxx:66
@ NSFNET_IGP
Definition ip_protocol.hxx:100
@ CRUDP
Definition ip_protocol.hxx:142
@ SCC_SP
Definition ip_protocol.hxx:111
@ TRUNK_1
Definition ip_protocol.hxx:37
@ ESP
Definition ip_protocol.hxx:64
@ WB_MON
Definition ip_protocol.hxx:93
@ PIM
Definition ip_protocol.hxx:118
@ ISO_TP4
Definition ip_protocol.hxx:43
@ SCPS
Definition ip_protocol.hxx:120
@ SWIPE
Definition ip_protocol.hxx:67
@ EIGRP
Definition ip_protocol.hxx:103
@ CRTP
Definition ip_protocol.hxx:141
@ NETBLT
Definition ip_protocol.hxx:44
@ NARP
Definition ip_protocol.hxx:68
@ SHIM6
Definition ip_protocol.hxx:155
@ LARP
Definition ip_protocol.hxx:106
@ SAT_MON
Definition ip_protocol.hxx:84
@ SM
Definition ip_protocol.hxx:137
@ SNP
Definition ip_protocol.hxx:124
@ COMPAQ_PEER
Definition ip_protocol.hxx:125
@ IPv6_Frag
Definition ip_protocol.hxx:58
@ VINES
Definition ip_protocol.hxx:98
@ SPS
Definition ip_protocol.hxx:145
@ MPLS_in_IP
Definition ip_protocol.hxx:152
@ ICMPv4
Definition ip_protocol.hxx:15
@ RSVP
Definition ip_protocol.hxx:60
@ HIP
Definition ip_protocol.hxx:154
@ KRYPTOLAN
Definition ip_protocol.hxx:80
@ RSVP_E2E_IGNORE
Definition ip_protocol.hxx:149
@ CPHB
Definition ip_protocol.hxx:88
@ IPv6_Opts
Definition ip_protocol.hxx:75
@ XNS_IDP
Definition ip_protocol.hxx:36
@ IPPC
Definition ip_protocol.hxx:82
@ STP
Definition ip_protocol.hxx:133
@ PRIVATE_ENCRYPTION
Definition ip_protocol.hxx:114
@ FC
Definition ip_protocol.hxx:148
@ ISO_IP
Definition ip_protocol.hxx:95
@ IPTM
Definition ip_protocol.hxx:99
@ PIPE
Definition ip_protocol.hxx:146
@ UDPLite
Definition ip_protocol.hxx:151
@ SCTP
Definition ip_protocol.hxx:147
@ IPv6_ICMP
Definition ip_protocol.hxx:73
@ IGMP
Definition ip_protocol.hxx:16
@ PUP
Definition ip_protocol.hxx:26
@ EMCON
Definition ip_protocol.hxx:28
@ AGGFRAG
Definition ip_protocol.hxx:159
@ IPX_IN_IP
Definition ip_protocol.hxx:126
@ CHAOS
Definition ip_protocol.hxx:30
@ BBN_RCC_MON
Definition ip_protocol.hxx:24
@ IDRP
Definition ip_protocol.hxx:59
@ IDPR
Definition ip_protocol.hxx:49
@ IPCV
Definition ip_protocol.hxx:86
@ LOCAL_NETWORK
Definition ip_protocol.hxx:78
@ RESERVED
Definition ip_protocol.hxx:167
@ IPLT
Definition ip_protocol.hxx:144
@ SAT_EXPAK
Definition ip_protocol.hxx:79
@ IL
Definition ip_protocol.hxx:54
@ DDP
Definition ip_protocol.hxx:51
@ VISA
Definition ip_protocol.hxx:85
@ TCF
Definition ip_protocol.hxx:102
@ ARIS
Definition ip_protocol.hxx:119
@ CBT
Definition ip_protocol.hxx:21
@ IFMP
Definition ip_protocol.hxx:116
@ SPRITE_RPC
Definition ip_protocol.hxx:105
@ DGP
Definition ip_protocol.hxx:101
@ RDP
Definition ip_protocol.hxx:41
@ SUN_ND
Definition ip_protocol.hxx:92
@ IRTP
Definition ip_protocol.hxx:42
@ PVP
Definition ip_protocol.hxx:90
@ IGP
Definition ip_protocol.hxx:23
@ L2TP
Definition ip_protocol.hxx:130
@ TCP
Definition ip_protocol.hxx:20
@ THREE_PC
Definition ip_protocol.hxx:48
@ FIRE
Definition ip_protocol.hxx:140
@ PRM
Definition ip_protocol.hxx:35
@ DCCP
Definition ip_protocol.hxx:47
@ WB_EXPAK
Definition ip_protocol.hxx:94
@ IATP
Definition ip_protocol.hxx:132
@ BR_SAT_MON
Definition ip_protocol.hxx:91
@ TLSP
Definition ip_protocol.hxx:70
@ ISIS
Definition ip_protocol.hxx:139
@ HOPOPT
Definition ip_protocol.hxx:14
@ ANY_0HOP
Definition ip_protocol.hxx:129
@ GGP
Definition ip_protocol.hxx:17
@ DDX
Definition ip_protocol.hxx:131
@ Homa
Definition ip_protocol.hxx:161
@ WESP
Definition ip_protocol.hxx:156
@ PNNI
Definition ip_protocol.hxx:117
@ GRE
Definition ip_protocol.hxx:61
@ MERIT_INP
Definition ip_protocol.hxx:46
@ UTI
Definition ip_protocol.hxx:135
@ ROHC
Definition ip_protocol.hxx:157
@ XTP
Definition ip_protocol.hxx:50
@ BNA
Definition ip_protocol.hxx:63
@ SDRP
Definition ip_protocol.hxx:56
@ MOBILITY
Definition ip_protocol.hxx:150
@ VMTP
Definition ip_protocol.hxx:96
@ VRRP
Definition ip_protocol.hxx:127
@ OSPFIGP
Definition ip_protocol.hxx:104
@ EGP
Definition ip_protocol.hxx:22
@ AH
Definition ip_protocol.hxx:65
@ ICMPv6
Definition ip_protocol.hxx:72
@ SSCOPMCE
Definition ip_protocol.hxx:143
@ TRUNK_2
Definition ip_protocol.hxx:38
@ ST
Definition ip_protocol.hxx:19
@ SMP
Definition ip_protocol.hxx:136
@ A_N
Definition ip_protocol.hxx:122
@ UDP
Definition ip_protocol.hxx:31
@ CPNX
Definition ip_protocol.hxx:87
@ RVD
Definition ip_protocol.hxx:81
@ PGM
Definition ip_protocol.hxx:128
@ SRP
Definition ip_protocol.hxx:134
@ IPv6_NoNxt
Definition ip_protocol.hxx:74