Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

nettl.h
1 /* nettl.h
2 *
3 * Wiretap Library
4 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
5 *
6 * Enhancements by Mark C. Brown <mbrown@hp.com>
7 * Copyright (C) 2003, 2005 Hewlett-Packard Development Company, L.P.
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef __NETTL_H__
13 #define __NETTL_H__
14
15 #include <glib.h>
16 #include <wiretap/wtap.h>
17
18 /* nettl subsystems are defined in /etc/nettlgen.conf */
19
20 #define NETTL_SUBSYS_NS_LS_LOGGING 0
21 #define NETTL_SUBSYS_NS_LS_NFT 1
22 #define NETTL_SUBSYS_NS_LS_LOOPBACK 2
23 #define NETTL_SUBSYS_NS_LS_NI 3
24 #define NETTL_SUBSYS_NS_LS_IPC 4
25 #define NETTL_SUBSYS_NS_LS_SOCKREGD 5
26 #define NETTL_SUBSYS_NS_LS_TCP 6
27 #define NETTL_SUBSYS_NS_LS_PXP 7
28 #define NETTL_SUBSYS_NS_LS_UDP 8
29 #define NETTL_SUBSYS_NS_LS_IP 9
30 #define NETTL_SUBSYS_NS_LS_PROBE 10
31 #define NETTL_SUBSYS_NS_LS_DRIVER 11
32 #define NETTL_SUBSYS_NS_LS_RLBD 12
33 #define NETTL_SUBSYS_NS_LS_BUFS 13
34 #define NETTL_SUBSYS_NS_LS_CASE21 14
35 #define NETTL_SUBSYS_NS_LS_ROUTER21 15
36 #define NETTL_SUBSYS_NS_LS_NFS 16
37 #define NETTL_SUBSYS_NS_LS_NETISR 17
38 #define NETTL_SUBSYS_NS_LS_NSE 18
39 #define NETTL_SUBSYS_NS_LS_STRLOG 19
40 #define NETTL_SUBSYS_NS_LS_TIRDWR 21
41 #define NETTL_SUBSYS_NS_LS_TIMOD 22
42 #define NETTL_SUBSYS_NS_LS_ICMP 23
43 #define NETTL_SUBSYS_FILTER 26
44 #define NETTL_SUBSYS_NAME 27
45 #define NETTL_SUBSYS_IGMP 29
46 #define NETTL_SUBSYS_SX25L2 34
47 #define NETTL_SUBSYS_SX25L3 35
48 #define NETTL_SUBSYS_FTAM_INIT 64
49 #define NETTL_SUBSYS_FTAM_RESP 65
50 #define NETTL_SUBSYS_FTAM_VFS 70
51 #define NETTL_SUBSYS_FTAM_USER 72
52 #define NETTL_SUBSYS_OTS 90
53 #define NETTL_SUBSYS_NETWORK 91
54 #define NETTL_SUBSYS_TRANSPORT 92
55 #define NETTL_SUBSYS_SESSION 93
56 #define NETTL_SUBSYS_ACSE_PRES 94
57 #define NETTL_SUBSYS_SHM 116
58 #define NETTL_SUBSYS_ACSE_US 119
59 #define NETTL_SUBSYS_HPS 121
60 #define NETTL_SUBSYS_CM 122
61 #define NETTL_SUBSYS_ULA_UTILS 123
62 #define NETTL_SUBSYS_EM 124
63 #define NETTL_SUBSYS_HP_APAPORT 189
64 #define NETTL_SUBSYS_HP_APALACP 190
65 #define NETTL_SUBSYS_NS_LS_IPV6 244
66 #define NETTL_SUBSYS_NS_LS_ICMPV6 245
67 #define NETTL_SUBSYS_NS_LS_TELNET 267
68 #define NETTL_SUBSYS_NS_LS_SCTP 268
69
70 /* Ethernet cards */
71 #define NETTL_SUBSYS_100VG 37
72 #define NETTL_SUBSYS_LAN100 164
73 #define NETTL_SUBSYS_EISA100BT 172
74 #define NETTL_SUBSYS_BASE100 173
75 #define NETTL_SUBSYS_GSC100BT 178
76 #define NETTL_SUBSYS_PCI100BT 179
77 #define NETTL_SUBSYS_SPP100BT 180
78 #define NETTL_SUBSYS_GELAN 185
79 #define NETTL_SUBSYS_BTLAN 210
80 #define NETTL_SUBSYS_INTL100 233
81 #define NETTL_SUBSYS_IGELAN 252
82 #define NETTL_SUBSYS_IETHER 253
83 #define NETTL_SUBSYS_IXGBE 265
84 #define NETTL_SUBSYS_ICXGBE 271
85 #define NETTL_SUBSYS_IEXGBE 275
86 #define NETTL_SUBSYS_IOCXGBE 277
87 #define NETTL_SUBSYS_IQXGBE 278
88
89 /* FDDI cards */
90 #define NETTL_SUBSYS_HPPB_FDDI 95
91 #define NETTL_SUBSYS_EISA_FDDI 174
92 #define NETTL_SUBSYS_PCI_FDDI 176
93 #define NETTL_SUBSYS_HSC_FDDI 177
94
95 /* Token Ring cards */
96 #define NETTL_SUBSYS_TOKEN 31
97 #define NETTL_SUBSYS_PCI_TR 187
98
99 /* Accelerated Virtual I/O (AVIO) drivers */
100 #define NETTL_SUBSYS_HSSN 269
101 #define NETTL_SUBSYS_IGSSN 270
102
103 /* from /usr/include/sys/subsys_id.h */
104
105 #define NETTL_HDR_HDRIN 0x80000000
106 #define NETTL_HDR_HDROUT 0x40000000
107 #define NETTL_HDR_PDUIN 0x20000000
108 #define NETTL_HDR_PDUOUT 0x10000000
109 #define NETTL_HDR_PROCEDURE_TRACE 0x08000000
110 #define NETTL_HDR_STATE_TRACE 0x04000000
111 #define NETTL_HDR_ERROR_TRACE 0x02000000
112 #define NETTL_HDR_LOG_TRACE 0x01000000
113 #define NETTL_HDR_LOOPBACK 0x00800000
114 #define NETTL_HDR_PTOP 0x00400000
115 #define NETTL_HDR_SUBSYSTEM_BITS_MASK 0x000fffff
116
117 #define NETTL_HDR_PDU_MASK 0x30000000
118
119 wtap_open_return_val nettl_open(wtap *wth, int *err, gchar **err_info);
120 gboolean nettl_dump_open(wtap_dumper *wdh, int *err);
121 int nettl_dump_can_write_encap(int encap);
122
123 #endif
wtap
Definition: wtap-int.h:34
wtap_dumper
Definition: wtap-int.h:86