6 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
8 * Enhancements by Mark C. Brown <mbrown@hp.com>
9 * Copyright (C) 2003, 2005 Hewlett-Packard Development Company, L.P.
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30 #include <wiretap/wtap.h>
32 /* nettl subsystems are defined in /etc/nettlgen.conf */
34 #define NETTL_SUBSYS_NS_LS_LOGGING 0
35 #define NETTL_SUBSYS_NS_LS_NFT 1
36 #define NETTL_SUBSYS_NS_LS_LOOPBACK 2
37 #define NETTL_SUBSYS_NS_LS_NI 3
38 #define NETTL_SUBSYS_NS_LS_IPC 4
39 #define NETTL_SUBSYS_NS_LS_SOCKREGD 5
40 #define NETTL_SUBSYS_NS_LS_TCP 6
41 #define NETTL_SUBSYS_NS_LS_PXP 7
42 #define NETTL_SUBSYS_NS_LS_UDP 8
43 #define NETTL_SUBSYS_NS_LS_IP 9
44 #define NETTL_SUBSYS_NS_LS_PROBE 10
45 #define NETTL_SUBSYS_NS_LS_DRIVER 11
46 #define NETTL_SUBSYS_NS_LS_RLBD 12
47 #define NETTL_SUBSYS_NS_LS_BUFS 13
48 #define NETTL_SUBSYS_NS_LS_CASE21 14
49 #define NETTL_SUBSYS_NS_LS_ROUTER21 15
50 #define NETTL_SUBSYS_NS_LS_NFS 16
51 #define NETTL_SUBSYS_NS_LS_NETISR 17
52 #define NETTL_SUBSYS_NS_LS_NSE 18
53 #define NETTL_SUBSYS_NS_LS_STRLOG 19
54 #define NETTL_SUBSYS_NS_LS_TIRDWR 21
55 #define NETTL_SUBSYS_NS_LS_TIMOD 22
56 #define NETTL_SUBSYS_NS_LS_ICMP 23
57 #define NETTL_SUBSYS_FILTER 26
58 #define NETTL_SUBSYS_NAME 27
59 #define NETTL_SUBSYS_IGMP 29
60 #define NETTL_SUBSYS_SX25L2 34
61 #define NETTL_SUBSYS_SX25L3 35
62 #define NETTL_SUBSYS_FTAM_INIT 64
63 #define NETTL_SUBSYS_FTAM_RESP 65
64 #define NETTL_SUBSYS_FTAM_VFS 70
65 #define NETTL_SUBSYS_FTAM_USER 72
66 #define NETTL_SUBSYS_OTS 90
67 #define NETTL_SUBSYS_NETWORK 91
68 #define NETTL_SUBSYS_TRANSPORT 92
69 #define NETTL_SUBSYS_SESSION 93
70 #define NETTL_SUBSYS_ACSE_PRES 94
71 #define NETTL_SUBSYS_SHM 116
72 #define NETTL_SUBSYS_ACSE_US 119
73 #define NETTL_SUBSYS_HPS 121
74 #define NETTL_SUBSYS_CM 122
75 #define NETTL_SUBSYS_ULA_UTILS 123
76 #define NETTL_SUBSYS_EM 124
77 #define NETTL_SUBSYS_HP_APAPORT 189
78 #define NETTL_SUBSYS_HP_APALACP 190
79 #define NETTL_SUBSYS_NS_LS_IPV6 244
80 #define NETTL_SUBSYS_NS_LS_ICMPV6 245
81 #define NETTL_SUBSYS_NS_LS_TELNET 267
82 #define NETTL_SUBSYS_NS_LS_SCTP 268
85 #define NETTL_SUBSYS_100VG 37
86 #define NETTL_SUBSYS_LAN100 164
87 #define NETTL_SUBSYS_EISA100BT 172
88 #define NETTL_SUBSYS_BASE100 173
89 #define NETTL_SUBSYS_GSC100BT 178
90 #define NETTL_SUBSYS_PCI100BT 179
91 #define NETTL_SUBSYS_SPP100BT 180
92 #define NETTL_SUBSYS_GELAN 185
93 #define NETTL_SUBSYS_BTLAN 210
94 #define NETTL_SUBSYS_INTL100 233
95 #define NETTL_SUBSYS_IGELAN 252
96 #define NETTL_SUBSYS_IETHER 253
97 #define NETTL_SUBSYS_IXGBE 265
98 #define NETTL_SUBSYS_ICXGBE 271
99 #define NETTL_SUBSYS_IEXGBE 275
100 #define NETTL_SUBSYS_IOCXGBE 277
101 #define NETTL_SUBSYS_IQXGBE 278
104 #define NETTL_SUBSYS_HPPB_FDDI 95
105 #define NETTL_SUBSYS_EISA_FDDI 174
106 #define NETTL_SUBSYS_PCI_FDDI 176
107 #define NETTL_SUBSYS_HSC_FDDI 177
109 /* Token Ring cards */
110 #define NETTL_SUBSYS_TOKEN 31
111 #define NETTL_SUBSYS_PCI_TR 187
113 /* Accelerated Virtual I/O (AVIO) drivers */
114 #define NETTL_SUBSYS_HSSN 269
115 #define NETTL_SUBSYS_IGSSN 270
117 /* from /usr/include/sys/subsys_id.h */
119 #define NETTL_HDR_HDRIN 0x80000000
120 #define NETTL_HDR_HDROUT 0x40000000
121 #define NETTL_HDR_PDUIN 0x20000000
122 #define NETTL_HDR_PDUOUT 0x10000000
123 #define NETTL_HDR_PROCEDURE_TRACE 0x08000000
124 #define NETTL_HDR_STATE_TRACE 0x04000000
125 #define NETTL_HDR_ERROR_TRACE 0x02000000
126 #define NETTL_HDR_LOG_TRACE 0x01000000
127 #define NETTL_HDR_LOOPBACK 0x00800000
128 #define NETTL_HDR_PTOP 0x00400000
129 #define NETTL_HDR_SUBSYSTEM_BITS_MASK 0x000fffff
131 #define NETTL_HDR_PDU_MASK 0x30000000
133 int nettl_open(wtap
*wth
, int *err
, gchar
**err_info
);
134 gboolean
nettl_dump_open(wtap_dumper
*wdh
, int *err
);
135 int nettl_dump_can_write_encap(int encap
);