1999-10-18 01:51:34 +00:00
|
|
|
/* nettl.h
|
1999-10-31 19:35:32 +00:00
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
1999-10-18 01:51:34 +00:00
|
|
|
*
|
|
|
|
* Wiretap Library
|
2001-11-13 23:55:44 +00:00
|
|
|
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
|
2002-08-28 20:30:45 +00:00
|
|
|
*
|
2005-04-07 10:04:50 +00:00
|
|
|
* Enhancements by Mark C. Brown <mbrown@hp.com>
|
|
|
|
* Copyright (C) 2003, 2005 Hewlett-Packard Development Company, L.P.
|
|
|
|
*
|
1999-10-18 01:51:34 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 20:30:45 +00:00
|
|
|
*
|
1999-10-18 01:51:34 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 20:30:45 +00:00
|
|
|
*
|
1999-10-18 01:51:34 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2007-01-01 14:48:18 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
1999-10-18 01:51:34 +00:00
|
|
|
*/
|
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#ifndef __NETTL_H__
|
|
|
|
#define __NETTL_H__
|
|
|
|
|
2011-06-04 21:20:57 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <wiretap/wtap.h>
|
|
|
|
|
2004-09-04 20:35:29 +00:00
|
|
|
/* nettl subsystems are defined in /etc/nettlgen.conf */
|
|
|
|
|
|
|
|
#define NETTL_SUBSYS_NS_LS_LOGGING 0
|
|
|
|
#define NETTL_SUBSYS_NS_LS_NFT 1
|
|
|
|
#define NETTL_SUBSYS_NS_LS_LOOPBACK 2
|
|
|
|
#define NETTL_SUBSYS_NS_LS_NI 3
|
|
|
|
#define NETTL_SUBSYS_NS_LS_IPC 4
|
|
|
|
#define NETTL_SUBSYS_NS_LS_SOCKREGD 5
|
|
|
|
#define NETTL_SUBSYS_NS_LS_TCP 6
|
|
|
|
#define NETTL_SUBSYS_NS_LS_PXP 7
|
|
|
|
#define NETTL_SUBSYS_NS_LS_UDP 8
|
|
|
|
#define NETTL_SUBSYS_NS_LS_IP 9
|
|
|
|
#define NETTL_SUBSYS_NS_LS_PROBE 10
|
|
|
|
#define NETTL_SUBSYS_NS_LS_DRIVER 11
|
|
|
|
#define NETTL_SUBSYS_NS_LS_RLBD 12
|
|
|
|
#define NETTL_SUBSYS_NS_LS_BUFS 13
|
|
|
|
#define NETTL_SUBSYS_NS_LS_CASE21 14
|
|
|
|
#define NETTL_SUBSYS_NS_LS_ROUTER21 15
|
|
|
|
#define NETTL_SUBSYS_NS_LS_NFS 16
|
|
|
|
#define NETTL_SUBSYS_NS_LS_NETISR 17
|
|
|
|
#define NETTL_SUBSYS_NS_LS_NSE 18
|
|
|
|
#define NETTL_SUBSYS_NS_LS_STRLOG 19
|
|
|
|
#define NETTL_SUBSYS_NS_LS_TIRDWR 21
|
|
|
|
#define NETTL_SUBSYS_NS_LS_TIMOD 22
|
|
|
|
#define NETTL_SUBSYS_NS_LS_ICMP 23
|
|
|
|
#define NETTL_SUBSYS_FILTER 26
|
|
|
|
#define NETTL_SUBSYS_NAME 27
|
|
|
|
#define NETTL_SUBSYS_IGMP 29
|
|
|
|
#define NETTL_SUBSYS_SX25L2 34
|
|
|
|
#define NETTL_SUBSYS_SX25L3 35
|
|
|
|
#define NETTL_SUBSYS_FTAM_INIT 64
|
|
|
|
#define NETTL_SUBSYS_FTAM_RESP 65
|
|
|
|
#define NETTL_SUBSYS_FTAM_VFS 70
|
|
|
|
#define NETTL_SUBSYS_FTAM_USER 72
|
|
|
|
#define NETTL_SUBSYS_OTS 90
|
|
|
|
#define NETTL_SUBSYS_NETWORK 91
|
|
|
|
#define NETTL_SUBSYS_TRANSPORT 92
|
|
|
|
#define NETTL_SUBSYS_SESSION 93
|
|
|
|
#define NETTL_SUBSYS_ACSE_PRES 94
|
|
|
|
#define NETTL_SUBSYS_SHM 116
|
|
|
|
#define NETTL_SUBSYS_ACSE_US 119
|
|
|
|
#define NETTL_SUBSYS_HPS 121
|
|
|
|
#define NETTL_SUBSYS_CM 122
|
|
|
|
#define NETTL_SUBSYS_ULA_UTILS 123
|
|
|
|
#define NETTL_SUBSYS_EM 124
|
|
|
|
#define NETTL_SUBSYS_HP_APAPORT 189
|
|
|
|
#define NETTL_SUBSYS_HP_APALACP 190
|
|
|
|
#define NETTL_SUBSYS_NS_LS_IPV6 244
|
|
|
|
#define NETTL_SUBSYS_NS_LS_ICMPV6 245
|
2007-01-01 14:48:18 +00:00
|
|
|
#define NETTL_SUBSYS_NS_LS_TELNET 267
|
2007-10-27 15:44:12 +00:00
|
|
|
#define NETTL_SUBSYS_NS_LS_SCTP 268
|
2000-02-17 21:08:15 +00:00
|
|
|
|
2000-11-13 23:02:24 +00:00
|
|
|
/* Ethernet cards */
|
2004-10-14 21:59:17 +00:00
|
|
|
#define NETTL_SUBSYS_100VG 37
|
2004-09-04 20:35:29 +00:00
|
|
|
#define NETTL_SUBSYS_LAN100 164
|
2004-10-06 10:08:29 +00:00
|
|
|
#define NETTL_SUBSYS_EISA100BT 172
|
2004-09-04 20:35:29 +00:00
|
|
|
#define NETTL_SUBSYS_BASE100 173
|
|
|
|
#define NETTL_SUBSYS_GSC100BT 178
|
|
|
|
#define NETTL_SUBSYS_PCI100BT 179
|
|
|
|
#define NETTL_SUBSYS_SPP100BT 180
|
|
|
|
#define NETTL_SUBSYS_GELAN 185
|
|
|
|
#define NETTL_SUBSYS_BTLAN 210
|
|
|
|
#define NETTL_SUBSYS_INTL100 233
|
|
|
|
#define NETTL_SUBSYS_IGELAN 252
|
|
|
|
#define NETTL_SUBSYS_IETHER 253
|
2005-02-03 22:44:13 +00:00
|
|
|
#define NETTL_SUBSYS_IXGBE 265
|
2008-04-12 09:23:35 +00:00
|
|
|
#define NETTL_SUBSYS_ICXGBE 271
|
2009-02-25 23:19:56 +00:00
|
|
|
#define NETTL_SUBSYS_IEXGBE 275
|
2000-11-13 23:02:24 +00:00
|
|
|
|
2004-04-02 08:27:26 +00:00
|
|
|
/* FDDI cards */
|
2004-10-01 22:01:25 +00:00
|
|
|
#define NETTL_SUBSYS_HPPB_FDDI 95
|
2004-10-06 10:08:29 +00:00
|
|
|
#define NETTL_SUBSYS_EISA_FDDI 174
|
2004-09-04 20:35:29 +00:00
|
|
|
#define NETTL_SUBSYS_PCI_FDDI 176
|
2004-10-06 10:08:29 +00:00
|
|
|
#define NETTL_SUBSYS_HSC_FDDI 177
|
2004-04-02 08:27:26 +00:00
|
|
|
|
|
|
|
/* Token Ring cards */
|
2004-09-04 20:35:29 +00:00
|
|
|
#define NETTL_SUBSYS_TOKEN 31
|
|
|
|
#define NETTL_SUBSYS_PCI_TR 187
|
2000-11-13 23:02:24 +00:00
|
|
|
|
2009-02-25 23:19:56 +00:00
|
|
|
/* Accelerated Virtual I/O (AVIO) drivers */
|
|
|
|
#define NETTL_SUBSYS_HSSN 269
|
|
|
|
#define NETTL_SUBSYS_IGSSN 270
|
|
|
|
|
2004-10-05 08:59:57 +00:00
|
|
|
/* from /usr/include/sys/subsys_id.h */
|
|
|
|
|
2007-10-27 15:44:12 +00:00
|
|
|
#define NETTL_HDR_HDRIN 0x80000000
|
|
|
|
#define NETTL_HDR_HDROUT 0x40000000
|
2005-04-01 10:17:05 +00:00
|
|
|
#define NETTL_HDR_PDUIN 0x20000000
|
|
|
|
#define NETTL_HDR_PDUOUT 0x10000000
|
2007-10-27 15:44:12 +00:00
|
|
|
#define NETTL_HDR_PROCEDURE_TRACE 0x08000000
|
|
|
|
#define NETTL_HDR_STATE_TRACE 0x04000000
|
|
|
|
#define NETTL_HDR_ERROR_TRACE 0x02000000
|
|
|
|
#define NETTL_HDR_LOG_TRACE 0x01000000
|
|
|
|
#define NETTL_HDR_LOOPBACK 0x00800000
|
|
|
|
#define NETTL_HDR_PTOP 0x00400000
|
|
|
|
#define NETTL_HDR_SUBSYSTEM_BITS_MASK 0x000fffff
|
2004-10-05 08:59:57 +00:00
|
|
|
|
2009-02-25 23:19:56 +00:00
|
|
|
#define NETTL_HDR_PDU_MASK 0x30000000
|
|
|
|
|
Have the Wiretap open, read, and seek-and-read routines return, in
addition to an error code, an error info string, for
WTAP_ERR_UNSUPPORTED, WTAP_ERR_UNSUPPORTED_ENCAP, and
WTAP_ERR_BAD_RECORD errors. Replace the error messages logged with
"g_message()" for those errors with g_strdup()ed or g_strdup_printf()ed
strings returned as the error info string, and change the callers of
those routines to, for those errors, put the info string into the
printed message or alert box for the error.
Add messages for cases where those errors were returned without printing
an additional message.
Nobody uses the error code from "cf_read()" - "cf_read()" puts up the
alert box itself for failures; get rid of the error code, so it just
returns a success/failure indication.
Rename "file_read_error_message()" to "cf_read_error_message()", as it
handles read errors from Wiretap, and have it take an error info string
as an argument. (That handles a lot of the work of putting the info
string into the error message.)
Make some variables in "ascend-grammar.y" static.
Check the return value of "erf_read_header()" in "erf_seek_read()".
Get rid of an unused #define in "i4btrace.c".
svn path=/trunk/; revision=9852
2004-01-25 21:55:17 +00:00
|
|
|
int nettl_open(wtap *wth, int *err, gchar **err_info);
|
2011-04-12 00:44:44 +00:00
|
|
|
gboolean nettl_dump_open(wtap_dumper *wdh, int *err);
|
2004-10-11 07:18:20 +00:00
|
|
|
int nettl_dump_can_write_encap(int encap);
|
2000-08-11 13:37:21 +00:00
|
|
|
|
|
|
|
#endif
|