File: constants.c

package info (click to toggle)
python-libpcap 0.6.4-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 340 kB
  • ctags: 592
  • sloc: ansic: 4,129; python: 522; makefile: 2
file content (398 lines) | stat: -rw-r--r-- 8,909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
/* Automatically generated from
   Id: mk-constants.py,v 1.8 2012/01/05 10:15:27 wiml Exp 
   Do not edit this file directly, it will be overwritten 
*/

static struct { const char *name; long value; }  const pcapmodule_DLT[] = {
#ifdef DLT_NULL
{ "DLT_NULL", (DLT_NULL) },
#endif
#ifdef DLT_EN10MB
{ "DLT_EN10MB", (DLT_EN10MB) },
#endif
#ifdef DLT_EN3MB
{ "DLT_EN3MB", (DLT_EN3MB) },
#endif
#ifdef DLT_AX25
{ "DLT_AX25", (DLT_AX25) },
#endif
#ifdef DLT_PRONET
{ "DLT_PRONET", (DLT_PRONET) },
#endif
#ifdef DLT_CHAOS
{ "DLT_CHAOS", (DLT_CHAOS) },
#endif
#ifdef DLT_ARCNET
{ "DLT_ARCNET", (DLT_ARCNET) },
#endif
#ifdef DLT_ARCNET_LINUX
{ "DLT_ARCNET_LINUX", (DLT_ARCNET_LINUX) },
#endif
#ifdef DLT_SLIP
{ "DLT_SLIP", (DLT_SLIP) },
#endif
#ifdef DLT_SLIP_BSDOS
{ "DLT_SLIP_BSDOS", (DLT_SLIP_BSDOS) },
#endif
#ifdef DLT_FDDI
{ "DLT_FDDI", (DLT_FDDI) },
#endif
#ifdef DLT_HIPPI
{ "DLT_HIPPI", (DLT_HIPPI) },
#endif
#ifdef DLT_ATM_RFC1483
{ "DLT_ATM_RFC1483", (DLT_ATM_RFC1483) },
#endif
#ifdef DLT_RAW
{ "DLT_RAW", (DLT_RAW) },
#endif
#ifdef DLT_PPP
{ "DLT_PPP", (DLT_PPP) },
#endif
#ifdef DLT_PPP_BSDOS
{ "DLT_PPP_BSDOS", (DLT_PPP_BSDOS) },
#endif
#ifdef DLT_PPP_SERIAL
{ "DLT_PPP_SERIAL", (DLT_PPP_SERIAL) },
#endif
#ifdef DLT_PPP_ETHER
{ "DLT_PPP_ETHER", (DLT_PPP_ETHER) },
#endif
#ifdef DLT_C_HDLC
{ "DLT_C_HDLC", (DLT_C_HDLC) },
#endif
#ifdef DLT_HDLC
{ "DLT_HDLC", (DLT_HDLC) },
#endif
#ifdef DLT_ATM_CLIP
{ "DLT_ATM_CLIP", (DLT_ATM_CLIP) },
#endif
#ifdef DLT_IEEE802
{ "DLT_IEEE802", (DLT_IEEE802) },
#endif
#ifdef DLT_IEEE802_11
{ "DLT_IEEE802_11", (DLT_IEEE802_11) },
#endif
#ifdef DLT_IEEE802_11_RADIO
{ "DLT_IEEE802_11_RADIO", (DLT_IEEE802_11_RADIO) },
#endif
#ifdef DLT_IEEE802_11_RADIO_AVS
{ "DLT_IEEE802_11_RADIO_AVS", (DLT_IEEE802_11_RADIO_AVS) },
#endif
#ifdef DLT_LOOP
{ "DLT_LOOP", (DLT_LOOP) },
#endif
#ifdef DLT_LINUX_SLL
{ "DLT_LINUX_SLL", (DLT_LINUX_SLL) },
#endif
#ifdef DLT_LTALK
{ "DLT_LTALK", (DLT_LTALK) },
#endif
#ifdef DLT_ECONET
{ "DLT_ECONET", (DLT_ECONET) },
#endif
#ifdef DLT_IPFILTER
{ "DLT_IPFILTER", (DLT_IPFILTER) },
#endif
#ifdef DLT_PFLOG
{ "DLT_PFLOG", (DLT_PFLOG) },
#endif
#ifdef DLT_PFSYNC
{ "DLT_PFSYNC", (DLT_PFSYNC) },
#endif
#ifdef DLT_CISCO_IOS
{ "DLT_CISCO_IOS", (DLT_CISCO_IOS) },
#endif
#ifdef DLT_PRISM_HEADER
{ "DLT_PRISM_HEADER", (DLT_PRISM_HEADER) },
#endif
#ifdef DLT_AIRONET_HEADER
{ "DLT_AIRONET_HEADER", (DLT_AIRONET_HEADER) },
#endif
#ifdef DLT_ENC
{ "DLT_ENC", (DLT_ENC) },
#endif
#ifdef DLT_APPLE_IP_OVER_IEEE1394
{ "DLT_APPLE_IP_OVER_IEEE1394", (DLT_APPLE_IP_OVER_IEEE1394) },
#endif
#ifdef DLT_AURORA
{ "DLT_AURORA", (DLT_AURORA) },
#endif
#ifdef DLT_DOCSIS
{ "DLT_DOCSIS", (DLT_DOCSIS) },
#endif
#ifdef DLT_FRELAY
{ "DLT_FRELAY", (DLT_FRELAY) },
#endif
#ifdef DLT_IP_OVER_FC
{ "DLT_IP_OVER_FC", (DLT_IP_OVER_FC) },
#endif
#ifdef DLT_JUNIPER_ATM1
{ "DLT_JUNIPER_ATM1", (DLT_JUNIPER_ATM1) },
#endif
#ifdef DLT_JUNIPER_ATM2
{ "DLT_JUNIPER_ATM2", (DLT_JUNIPER_ATM2) },
#endif
#ifdef DLT_JUNIPER_ES
{ "DLT_JUNIPER_ES", (DLT_JUNIPER_ES) },
#endif
#ifdef DLT_JUNIPER_GGSN
{ "DLT_JUNIPER_GGSN", (DLT_JUNIPER_GGSN) },
#endif
#ifdef DLT_JUNIPER_MFR
{ "DLT_JUNIPER_MFR", (DLT_JUNIPER_MFR) },
#endif
#ifdef DLT_JUNIPER_MLFR
{ "DLT_JUNIPER_MLFR", (DLT_JUNIPER_MLFR) },
#endif
#ifdef DLT_JUNIPER_MLPPP
{ "DLT_JUNIPER_MLPPP", (DLT_JUNIPER_MLPPP) },
#endif
#ifdef DLT_JUNIPER_MONITOR
{ "DLT_JUNIPER_MONITOR", (DLT_JUNIPER_MONITOR) },
#endif
#ifdef DLT_JUNIPER_SERVICES
{ "DLT_JUNIPER_SERVICES", (DLT_JUNIPER_SERVICES) },
#endif
#ifdef DLT_LINUX_IRDA
{ "DLT_LINUX_IRDA", (DLT_LINUX_IRDA) },
#endif
#ifdef DLT_RIO
{ "DLT_RIO", (DLT_RIO) },
#endif
#ifdef DLT_SUNATM
{ "DLT_SUNATM", (DLT_SUNATM) },
#endif
#ifdef DLT_SYMANTEC_FIREWALL
{ "DLT_SYMANTEC_FIREWALL", (DLT_SYMANTEC_FIREWALL) },
#endif
#ifdef DLT_TZSP
{ "DLT_TZSP", (DLT_TZSP) },
#endif
#ifdef DLT_REDBACK_SMARTEDGE
{ "DLT_REDBACK_SMARTEDGE", (DLT_REDBACK_SMARTEDGE) },
#endif
#ifdef DLT_OLD_PFLOG
{ "DLT_OLD_PFLOG", (DLT_OLD_PFLOG) },
#endif
#ifdef DLT_HHDLC
{ "DLT_HHDLC", (DLT_HHDLC) },
#endif
#ifdef DLT_PCI_EXP
{ "DLT_PCI_EXP", (DLT_PCI_EXP) },
#endif
#ifdef DLT_MTP2_WITH_PHDR
{ "DLT_MTP2_WITH_PHDR", (DLT_MTP2_WITH_PHDR) },
#endif
#ifdef DLT_MTP2
{ "DLT_MTP2", (DLT_MTP2) },
#endif
#ifdef DLT_MTP3
{ "DLT_MTP3", (DLT_MTP3) },
#endif
#ifdef DLT_SCCP
{ "DLT_SCCP", (DLT_SCCP) },
#endif
#ifdef DLT_IBM_SP
{ "DLT_IBM_SP", (DLT_IBM_SP) },
#endif
#ifdef DLT_IBM_SN
{ "DLT_IBM_SN", (DLT_IBM_SN) },
#endif
#ifdef DLT_BACNET_MS_TP
{ "DLT_BACNET_MS_TP", (DLT_BACNET_MS_TP) },
#endif
#ifdef DLT_LINUX_PPP_WITHDIRECTION
{ "DLT_LINUX_PPP_WITHDIRECTION", (DLT_LINUX_PPP_WITHDIRECTION) },
#endif
#ifdef DLT_GPRS_LLC
{ "DLT_GPRS_LLC", (DLT_GPRS_LLC) },
#endif
#ifdef DLT_GPF_T
{ "DLT_GPF_T", (DLT_GPF_T) },
#endif
#ifdef DLT_GPF_F
{ "DLT_GPF_F", (DLT_GPF_F) },
#endif
#ifdef DLT_GCOM_T1E1
{ "DLT_GCOM_T1E1", (DLT_GCOM_T1E1) },
#endif
#ifdef DLT_GCOM_SERIAL
{ "DLT_GCOM_SERIAL", (DLT_GCOM_SERIAL) },
#endif
#ifdef DLT_JUNIPER_PIC_PEER
{ "DLT_JUNIPER_PIC_PEER", (DLT_JUNIPER_PIC_PEER) },
#endif
#ifdef DLT_ERF_ETH
{ "DLT_ERF_ETH", (DLT_ERF_ETH) },
#endif
#ifdef DLT_ERF_POS
{ "DLT_ERF_POS", (DLT_ERF_POS) },
#endif
#ifdef DLT_LINUX_LAPD
{ "DLT_LINUX_LAPD", (DLT_LINUX_LAPD) },
#endif
#ifdef DLT_JUNIPER_ETHER
{ "DLT_JUNIPER_ETHER", (DLT_JUNIPER_ETHER) },
#endif
#ifdef DLT_JUNIPER_PPP
{ "DLT_JUNIPER_PPP", (DLT_JUNIPER_PPP) },
#endif
#ifdef DLT_JUNIPER_PPPOE
{ "DLT_JUNIPER_PPPOE", (DLT_JUNIPER_PPPOE) },
#endif
#ifdef DLT_JUNIPER_PPPOE_ATM
{ "DLT_JUNIPER_PPPOE_ATM", (DLT_JUNIPER_PPPOE_ATM) },
#endif
#ifdef DLT_JUNIPER_FRELAY
{ "DLT_JUNIPER_FRELAY", (DLT_JUNIPER_FRELAY) },
#endif
#ifdef DLT_JUNIPER_CHDLC
{ "DLT_JUNIPER_CHDLC", (DLT_JUNIPER_CHDLC) },
#endif
#ifdef DLT_JUNIPER_ISM
{ "DLT_JUNIPER_ISM", (DLT_JUNIPER_ISM) },
#endif
#ifdef DLT_JUNIPER_ST
{ "DLT_JUNIPER_ST", (DLT_JUNIPER_ST) },
#endif
#ifdef DLT_JUNIPER_VP
{ "DLT_JUNIPER_VP", (DLT_JUNIPER_VP) },
#endif
#ifdef DLT_PPP_PPPD
{ "DLT_PPP_PPPD", (DLT_PPP_PPPD) },
#endif
#ifdef DLT_MFR
{ "DLT_MFR", (DLT_MFR) },
#endif
#ifdef DLT_A429
{ "DLT_A429", (DLT_A429) },
#endif
#ifdef DLT_A653_ICM
{ "DLT_A653_ICM", (DLT_A653_ICM) },
#endif
#ifdef DLT_USB
{ "DLT_USB", (DLT_USB) },
#endif
#ifdef DLT_USB_LINUX
{ "DLT_USB_LINUX", (DLT_USB_LINUX) },
#endif
#ifdef DLT_CAN20B
{ "DLT_CAN20B", (DLT_CAN20B) },
#endif
#ifdef DLT_BLUETOOTH_HCI_H4
{ "DLT_BLUETOOTH_HCI_H4", (DLT_BLUETOOTH_HCI_H4) },
#endif
#ifdef DLT_BLUETOOTH_HCI_H4_WITH_PHDR
{ "DLT_BLUETOOTH_HCI_H4_WITH_PHDR", (DLT_BLUETOOTH_HCI_H4_WITH_PHDR) },
#endif
#ifdef DLT_IEEE802_16_MAC_CPS
{ "DLT_IEEE802_16_MAC_CPS", (DLT_IEEE802_16_MAC_CPS) },
#endif
#ifdef DLT_IEEE802_16_MAC_CPS_RADIO
{ "DLT_IEEE802_16_MAC_CPS_RADIO", (DLT_IEEE802_16_MAC_CPS_RADIO) },
#endif
#ifdef DLT_IEEE802_15_4_LINUX
{ "DLT_IEEE802_15_4_LINUX", (DLT_IEEE802_15_4_LINUX) },
#endif
#ifdef DLT_IEEE802_15_4
{ "DLT_IEEE802_15_4", (DLT_IEEE802_15_4) },
#endif
#ifdef DLT_PPI
{ "DLT_PPI", (DLT_PPI) },
#endif
#ifdef DLT_SITA
{ "DLT_SITA", (DLT_SITA) },
#endif
#ifdef DLT_ERF
{ "DLT_ERF", (DLT_ERF) },
#endif
#ifdef DLT_RAIF1
{ "DLT_RAIF1", (DLT_RAIF1) },
#endif
#ifdef DLT_IPMB
{ "DLT_IPMB", (DLT_IPMB) },
#endif
#ifdef DLT_AX25_KISS
{ "DLT_AX25_KISS", (DLT_AX25_KISS) },
#endif
#ifdef DLT_LAPD
{ "DLT_LAPD", (DLT_LAPD) },
#endif
#ifdef DLT_PPP_WITH_DIR
{ "DLT_PPP_WITH_DIR", (DLT_PPP_WITH_DIR) },
#endif
#ifdef DLT_C_HDLC_WITH_DIR
{ "DLT_C_HDLC_WITH_DIR", (DLT_C_HDLC_WITH_DIR) },
#endif
#ifdef DLT_FRELAY_WITH_DIR
{ "DLT_FRELAY_WITH_DIR", (DLT_FRELAY_WITH_DIR) },
#endif
#ifdef DLT_LAPB_WITH_DIR
{ "DLT_LAPB_WITH_DIR", (DLT_LAPB_WITH_DIR) },
#endif
#ifdef DLT_IPMB_LINUX
{ "DLT_IPMB_LINUX", (DLT_IPMB_LINUX) },
#endif
#ifdef DLT_FLEXRAY
{ "DLT_FLEXRAY", (DLT_FLEXRAY) },
#endif
#ifdef DLT_MOST
{ "DLT_MOST", (DLT_MOST) },
#endif
#ifdef DLT_LIN
{ "DLT_LIN", (DLT_LIN) },
#endif
#ifdef DLT_IEEE802_15_4_NONASK_PHY
{ "DLT_IEEE802_15_4_NONASK_PHY", (DLT_IEEE802_15_4_NONASK_PHY) },
#endif
#ifdef DLT_GSMTAP_UM
{ "DLT_GSMTAP_UM", (DLT_GSMTAP_UM) },
#endif
#ifdef DLT_GSMTAP_ABIS
{ "DLT_GSMTAP_ABIS", (DLT_GSMTAP_ABIS) },
#endif
#ifdef DLT_MPLS
{ "DLT_MPLS", (DLT_MPLS) },
#endif
#ifdef DLT_DECT
{ "DLT_DECT", (DLT_DECT) },
#endif
#ifdef DLT_AOS
{ "DLT_AOS", (DLT_AOS) },
#endif
#ifdef DLT_WIHART
{ "DLT_WIHART", (DLT_WIHART) },
#endif
#ifdef DLT_FC_2
{ "DLT_FC_2", (DLT_FC_2) },
#endif
#ifdef DLT_FC_2_WITH_FRAME_DELIMS
{ "DLT_FC_2_WITH_FRAME_DELIMS", (DLT_FC_2_WITH_FRAME_DELIMS) },
#endif
#ifdef DLT_IPNET
{ "DLT_IPNET", (DLT_IPNET) },
#endif
#ifdef DLT_CAN_SOCKETCAN
{ "DLT_CAN_SOCKETCAN", (DLT_CAN_SOCKETCAN) },
#endif
#ifdef DLT_IPV4
{ "DLT_IPV4", (DLT_IPV4) },
#endif
#ifdef DLT_IPV6
{ "DLT_IPV6", (DLT_IPV6) },
#endif
#ifdef DLT_IEEE802_15_4_NOFCS
{ "DLT_IEEE802_15_4_NOFCS", (DLT_IEEE802_15_4_NOFCS) },
#endif
#ifdef DLT_MUX27010
{ "DLT_MUX27010", (DLT_MUX27010) },
#endif
#ifdef DLT_STANAG_5066_D_PDU
{ "DLT_STANAG_5066_D_PDU", (DLT_STANAG_5066_D_PDU) },
#endif
#ifdef DLT_IPOIB
{ "DLT_IPOIB", (DLT_IPOIB) },
#endif
{ NULL, 0 }
};