#ifndef __ADDR_AND_MASK_H__
#define __ADDR_AND_MASK_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* These routines return PREFIX_LEN_OK on success, PREFIX_LEN_TOO_LONG if
* the prefix length is too long, and PREFIX_LEN_ZERO if the prefix length
extern int ipv6_addr_and_mask(tvbuff_t *tvb, int offset,
struct e_in6_addr *addr, guint32 prefix_len);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __ADDR_AND_MASK_H__ */
#include <epan/address.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#ifndef MAXNAMELEN
#define MAXNAMELEN 64 /* max name length (hostname and port name) */
#endif
*/
const char* host_ip_af(const char *host);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __RESOLV_H__ */
#ifndef __ADDRESS_H__
#define __ADDRESS_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Types of addresses Wireshark knows about. */
/* If a new address type is added here, a string representation procedure should */
/* also be included in address_to_str_buf defined in to_str.c, for presentation purposes */
/* Could also have ATM VPI/VCI pairs */
} circuit_type;
-#endif /* __ADDRESS_H__ */
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* __ADDRESS_H__ */
#ifndef __AFN_H__
#define __AFN_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Address family numbers, from
*
#define AFNUM_L2VPN_OLD 196
extern const value_string afn_vals[];
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __AFN_H__ */
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __AFTYPES_H__
+#define __AFTYPES_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* BSD AF_ values. */
#define BSD_AF_INET 2
#define BSD_AF_ISO 7
#define BSD_AF_INET6_BSD 24 /* OpenBSD (and probably NetBSD), BSD/OS */
#define BSD_AF_INET6_FREEBSD 28
#define BSD_AF_INET6_DARWIN 30
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* aftypes.h */
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __ARCNET_PIDS_H__
+#define __ARCNET_PIDS_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* RFC 1051 */
#define ARCNET_PROTO_IP_1051 240
#define ARCNET_PROTO_ARP_1051 241
#define ARCNET_PROTO_DIAGNOSE 128 /* as per ANSI/ATA 878.1 */
#define ARCNET_PROTO_BACNET 205
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* arcnet_pids.h */
#ifndef __ARPTYPES_H__
#define __ARPTYPES_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Definitions taken from Linux "linux/if_arp.h" header file, and from
http://www.iana.org/assignments/arp-parameters
#define ARPHRD_TWINAX 26 /* Twinaxial */
#define ARPHRD_EUI_64 27 /* EUI-64 */
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* arptypes.h */
#include <glib.h>
#include <stdio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Structure used to represent a DDP address; gives the layout of the
* data pointed to by an AT_ATALK "address" structure.
extern void atalk_addr_to_str_buf(const struct atalk_ddp_addr *addrp,
gchar *buf, int buf_len);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
* $Id$
*
* Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
- *
* 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
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __BITSWAP_H__
+#define __BITSWAP_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
extern guint8 swaptab[256];
#define BIT_SWAP(b) (swaptab[b])
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* bitswap.h */
#ifndef __BRIDGED_PID_H__
#define __BRIDGED_PID_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define BPID_ETH_WITH_FCS 0x0001 /* 802.3/Ethernet with preserved FCS */
#define BPID_ETH_WITHOUT_FCS 0x0007 /* 802.3/Ethernet without preserved FCS */
#define BPID_SR_BPDU 0x000F /* Source Routing BPDUs */
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* bridged_pid.h */
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#ifndef __camelsrt_HASH__
-#define __camelsrt_HASH__
+#ifndef __CAMEL_PERSISTENTDATA_H__
+#define __CAMEL_PERSISTENTDATA_H__
-#include "epan/packet.h"
-#include "epan/conversation.h"
-#include "epan/dissectors/packet-camel.h"
-#include "epan/tcap-persistentdata.h"
+#include <epan/packet.h>
+#include <epan/conversation.h>
+#include <epan/dissectors/packet-camel.h>
+#include <epan/tcap-persistentdata.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
#define NB_CAMELSRT_CATEGORY 9+1 /* Number of type of message */
/* for example TC_BEGIN with InitalDP, and TC_CONT with RequestReportBCSMEvent
WS_VAR_IMPORT gboolean gcamel_StatSRT;
-#endif /* __camelsrt_HASH__*/
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* camel-persistentdata.h */
#ifndef __CHDLCTYPES_H__
#define __CHDLCTYPES_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define CHDLCTYPE_FRARP 0x0808 /* Frame Relay ARP */
#define CHDLCTYPE_BPDU 0x4242 /* IEEE spanning tree protocol */
#define CHDLCTYPE_OSI 0xfefe /* ISO network-layer protocols */
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* chdlctypes.h */
#include "packet.h" /* for circuit dissector type */
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Data structure representing a circuit.
*/
try_circuit_dissector(circuit_type ctype, guint32 circuit_id, guint32 frame,
tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
-#endif /* circuit.h */
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* circuit.h */
#include "column_info.h"
#include "packet_info.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/** Maximum length of columns (except COL_INFO).
* Internal, don't use this in dissectors!
*/
const gchar *format, ...)
GNUC_FORMAT_CHECK(printf, 4, 5);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif /* __COLUMN_UTILS_H__ */
#ifndef __COLUMN_H__
#define __COLUMN_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
typedef struct _fmt_data {
gchar *title;
gchar *fmt;
const char *get_column_longest_string(gint);
gint get_column_char_width(gint format);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* column.h */
#include <glib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define COL_MAX_LEN 256
#define COL_MAX_INFO_LEN 4096
COL_8021Q_VLAN_ID, /* 802.1Q vlan ID */
COL_DSCP_VALUE, /* IP DSCP Value */
COL_COS_VALUE, /* L2 COS Value */
- COL_TEI, /* q.921 TEI */
- COL_FR_DLCI, /* Frame Relay DLCI */
- COL_BSSGP_TLLI, /* GPRS BSSGP IE TLLI */
+ COL_TEI, /* Q.921 TEI */
+ COL_FR_DLCI, /* Frame Relay DLCI */
+ COL_BSSGP_TLLI, /* GPRS BSSGP IE TLLI */
NUM_COL_FMTS /* Should always be last */
};
-#endif /* __COLUMN_INFO_H__ */
-
-
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* __COLUMN_INFO_H__ */
#ifndef __CONVERSATION_H__
#define __CONVERSATION_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Flags to pass to "conversation_new()" to indicate that the address 2
* and/or port 2 values for the conversation should be wildcards.
extern void conversation_set_port2(conversation_t *conv, guint32 port);
extern void conversation_set_addr2(conversation_t *conv, address *addr);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* conversation.h */
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __CRC16_H_
+#define __CRC16_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Calculate the CCITT/ITU/CRC-16 16-bit CRC
(parameters for this CRC are:
extern guint16 crc16_ccitt_tvb_offset_seed(tvbuff_t *tvb, guint offset,
guint len, guint16 seed);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* crc16.h */
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __CRC32_H_
+#define __CRC32_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
extern const guint32 crc32_ccitt_table[256];
/** Compute CRC32 CCITT checksum of a buffer of data.
@return The IEEE 802.x CRC32 checksum. */
extern guint32 crc32_802_tvb(tvbuff_t *tvb, guint len);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* crc32.h */
#include "epan.h"
#include "tfs.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define hi_nibble(b) (((b) & 0xf0) >> 4)
#define lo_nibble(b) ((b) & 0x0f)
extern void register_postdissector(dissector_handle_t);
extern void call_all_postdissectors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* packet.h */
#include "tvbuff.h"
#include "ftypes/ftypes.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/** The header-field index for the special text pseudo-field. Exported by libwireshark.dll */
WS_VAR_IMPORT int hf_text_only;
extern proto_item *
proto_tree_add_bitmask(proto_tree *tree, tvbuff_t *tvb, int offset, int hf_hdr, gint ett, const int **fields, gboolean little_endian);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* proto.h */
#include <stdio.h>
#include <time.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Encapsulation types. Choose names that truly reflect
* what is contained in the packet trace file.
*
#define WTAP_ERR_ZLIB_MAX -100
#define WTAP_ERR_ZLIB_MIN -300
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif /* __WTAP_H__ */