/* decode_as_dlg.c
*
- * $Id: decode_as_dlg.c,v 1.5 2001/03/26 10:28:34 guy Exp $
+ * $Id: decode_as_dlg.c,v 1.6 2001/04/23 17:51:37 guy Exp $
*
* Routines to modify dissector tables on the fly.
*
#include "globals.h"
#include "simple_dialog.h"
#include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
#include "ui_util.h"
#undef DEBUG
/* ipproto.h
- * Declarations of outines for converting IPv4 protocol/v6 nxthdr field into string
+ * Declarations of IP protocol numbers, and of routines for converting
+ * IP protocol numbers into strings.
*
- * $Id: ipproto.h,v 1.1 2001/04/17 06:29:12 guy Exp $
+ * $Id: ipproto.h,v 1.2 2001/04/23 17:51:33 guy Exp $
*
* Gilbert Ramirez <gram@xiexie.org>
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
#ifndef __IPPROTO_H__
#define __IPPROTO_H__
+/*
+ * IP protocol numbers.
+ */
+#define IP_PROTO_IP 0 /* dummy for IP */
+#define IP_PROTO_HOPOPTS 0 /* IP6 hop-by-hop options */
+#define IP_PROTO_ICMP 1 /* control message protocol */
+#define IP_PROTO_IGMP 2 /* group mgmt protocol */
+#define IP_PROTO_GGP 3 /* gateway^2 (deprecated) */
+#define IP_PROTO_IPIP 4 /* IP inside IP */
+#define IP_PROTO_IPV4 4 /* IP header */
+#define IP_PROTO_TCP 6 /* tcp */
+#define IP_PROTO_EGP 8 /* exterior gateway protocol */
+#define IP_PROTO_IGRP 9
+#define IP_PROTO_PUP 12 /* pup */
+#define IP_PROTO_UDP 17 /* user datagram protocol */
+#define IP_PROTO_IDP 22 /* xns idp */
+#define IP_PROTO_TP 29 /* tp-4 w/ class negotiation */
+#define IP_PROTO_IPV6 41 /* IP6 header */
+#define IP_PROTO_ROUTING 43 /* IP6 routing header */
+#define IP_PROTO_FRAGMENT 44 /* IP6 fragmentation header */
+#define IP_PROTO_RSVP 46 /* Resource ReSerVation protocol */
+#define IP_PROTO_GRE 47 /* GRE */
+#define IP_PROTO_ESP 50 /* ESP */
+#define IP_PROTO_AH 51 /* AH */
+#define IP_PROTO_ICMPV6 58 /* ICMP6 */
+#define IP_PROTO_NONE 59 /* IP6 no next header */
+#define IP_PROTO_DSTOPTS 60 /* IP6 no next header */
+#define IP_PROTO_EON 80 /* ISO cnlp */
+#define IP_PROTO_VINES 83 /* Vines over raw IP */
+#define IP_PROTO_EIGRP 88
+#define IP_PROTO_OSPF 89
+#define IP_PROTO_ENCAP 98 /* encapsulation header */
+#define IP_PROTO_PIM 103 /* Protocol Independent Mcast */
+#define IP_PROTO_IPCOMP 108 /* IP payload compression */
+#define IP_PROTO_VRRP 112 /* Virtual Router Redundancy Protocol */
+#define IP_PROTO_SCTP 132 /* Stream Control Transmission Protocol */
+
extern const char *ipprotostr(int proto);
#endif /* ipproto.h */
* Routines for EIGRP dissection
* Copyright 2000, Paul Ionescu <paul@acorp.ro>
*
- * $Id: packet-eigrp.c,v 1.14 2001/04/20 08:14:35 guy Exp $
+ * $Id: packet-eigrp.c,v 1.15 2001/04/23 17:51:33 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
#include "resolv.h"
#include "atalk-utils.h"
-#include "packet-ip.h"
+#include "ipproto.h"
#include "packet-ipx.h"
#define EIGRP_UPDATE 0x01
* Routines for the Generic Routing Encapsulation (GRE) protocol
* Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
*
- * $Id: packet-gre.c,v 1.41 2001/04/17 06:43:18 guy Exp $
+ * $Id: packet-gre.c,v 1.42 2001/04/23 17:51:33 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
#endif
#include <glib.h>
#include "packet.h"
-#include "packet-ip.h"
#include "packet-ipx.h"
#include "packet-wccp.h"
#include "in_cksum.h"
#include "etypes.h"
#include "greproto.h"
+#include "ipproto.h"
static int proto_gre = -1;
static int hf_gre_proto = -1;
/* packet-icmpv6.c
* Routines for ICMPv6 packet disassembly
*
- * $Id: packet-icmpv6.c,v 1.40 2001/04/23 03:56:57 guy Exp $
+ * $Id: packet-icmpv6.c,v 1.41 2001/04/23 17:51:33 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "packet.h"
#include "packet-ipv6.h"
-#include "packet-ip.h"
#include "packet-dns.h"
#include "in_cksum.h"
#include "resolv.h"
+#include "ipproto.h"
#ifndef offsetof
#define offsetof(type, member) ((size_t)(&((type *)0)->member))
* Routines for IGRP dissection
* Copyright 2000, Paul Ionescu <paul@acorp.ro>
*
- * $Id: packet-igrp.c,v 1.6 2001/03/05 20:11:36 guy Exp $
+ * $Id: packet-igrp.c,v 1.7 2001/04/23 17:51:33 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
* Copied from packet-syslog.c
#include <string.h>
#include <glib.h>
#include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
#define IGRP_HEADER_LENGTH 12
#define IGRP_ENTRY_LENGTH 14
/* packet-ip.h
* Definitions for IP packet disassembly structures and routines
*
- * $Id: packet-ip.h,v 1.18 2001/03/05 20:11:36 guy Exp $
+ * $Id: packet-ip.h,v 1.19 2001/04/23 17:51:33 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
void capture_ip(const u_char *, int, packet_counts *);
-#define IP_PROTO_IP 0 /* dummy for IP */
-#define IP_PROTO_HOPOPTS 0 /* IP6 hop-by-hop options */
-#define IP_PROTO_ICMP 1 /* control message protocol */
-#define IP_PROTO_IGMP 2 /* group mgmt protocol */
-#define IP_PROTO_GGP 3 /* gateway^2 (deprecated) */
-#define IP_PROTO_IPIP 4 /* IP inside IP */
-#define IP_PROTO_IPV4 4 /* IP header */
-#define IP_PROTO_TCP 6 /* tcp */
-#define IP_PROTO_EGP 8 /* exterior gateway protocol */
-#define IP_PROTO_IGRP 9
-#define IP_PROTO_PUP 12 /* pup */
-#define IP_PROTO_UDP 17 /* user datagram protocol */
-#define IP_PROTO_IDP 22 /* xns idp */
-#define IP_PROTO_TP 29 /* tp-4 w/ class negotiation */
-#define IP_PROTO_IPV6 41 /* IP6 header */
-#define IP_PROTO_ROUTING 43 /* IP6 routing header */
-#define IP_PROTO_FRAGMENT 44 /* IP6 fragmentation header */
-#define IP_PROTO_RSVP 46 /* Resource ReSerVation protocol */
-#define IP_PROTO_GRE 47 /* GRE */
-#define IP_PROTO_ESP 50 /* ESP */
-#define IP_PROTO_AH 51 /* AH */
-#define IP_PROTO_ICMPV6 58 /* ICMP6 */
-#define IP_PROTO_NONE 59 /* IP6 no next header */
-#define IP_PROTO_DSTOPTS 60 /* IP6 no next header */
-#define IP_PROTO_EON 80 /* ISO cnlp */
-#define IP_PROTO_VINES 83 /* Vines over raw IP */
-#define IP_PROTO_EIGRP 88
-#define IP_PROTO_OSPF 89
-#define IP_PROTO_ENCAP 98 /* encapsulation header */
-#define IP_PROTO_PIM 103 /* Protocol Independent Mcast */
-#define IP_PROTO_IPCOMP 108 /* IP payload compression */
-#define IP_PROTO_VRRP 112 /* Virtual Router Redundancy Protocol */
-#define IP_PROTO_SCTP 132 /* Stream Control Transmission Protocol */
-
typedef enum {
NO_LENGTH, /* option has no data, hence no length */
FIXED_LENGTH, /* option always has the same length */
* Routines for OSPF packet disassembly
* (c) Copyright Hannes R. Boehm <hannes@boehm.org>
*
- * $Id: packet-ospf.c,v 1.37 2001/02/04 08:21:35 guy Exp $
+ * $Id: packet-ospf.c,v 1.38 2001/04/23 17:51:33 guy Exp $
*
* At this time, this module is able to analyze OSPF
* packets as specified in RFC2328. MOSPF (RFC1584) and other
* TOS - support is not fully implemented
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
#include <glib.h>
#include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
#include "in_cksum.h"
#include "ieee-float.h"
* Routines for PIM disassembly
* (c) Copyright Jun-ichiro itojun Hagino <itojun@itojun.org>
*
- * $Id: packet-pim.c,v 1.26 2001/04/23 03:56:57 guy Exp $
+ * $Id: packet-pim.c,v 1.27 2001/04/23 17:51:33 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
#endif
#include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
#include "in_cksum.h"
#define PIM_TYPE(x) ((x) & 0x0f)
*
* (c) Copyright Ashok Narayanan <ashokn@cisco.com>
*
- * $Id: packet-rsvp.c,v 1.38 2001/04/20 01:22:23 guy Exp $
+ * $Id: packet-rsvp.c,v 1.39 2001/04/23 17:51:33 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
#include "packet.h"
#include "in_cksum.h"
-#include "packet-ip.h"
#include "packet-ipv6.h"
#include "ieee-float.h"
#include "etypes.h"
+#include "ipproto.h"
static int proto_rsvp = -1;
* Routines for Stream Control Transmission Protocol dissection
* Copyright 2000, Michael Tüxen <Michael.Tuexen@icn.siemens.de>
*
- * $Id: packet-sctp.c,v 1.15 2001/04/20 20:34:29 guy Exp $
+ * $Id: packet-sctp.c,v 1.16 2001/04/23 17:51:33 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#endif
#include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
/* Initialize the protocol and registered fields */
static int proto_sctp = -1;
/* packet-tcp.c
* Routines for TCP packet disassembly
*
- * $Id: packet-tcp.c,v 1.101 2001/03/28 21:33:31 guy Exp $
+ * $Id: packet-tcp.c,v 1.102 2001/04/23 17:51:34 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
#include "globals.h"
#include "resolv.h"
+#include "ipproto.h"
#include "follow.h"
#include "prefs.h"
#include "packet-tcp.h"
/* packet-udp.c
* Routines for UDP packet disassembly
*
- * $Id: packet-udp.c,v 1.89 2001/03/28 21:33:31 guy Exp $
+ * $Id: packet-udp.c,v 1.90 2001/04/23 17:51:34 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
* Richard Sharpe, 13-Feb-1999, added dispatch table support and
#include <glib.h>
#include "globals.h"
#include "resolv.h"
+#include "ipproto.h"
#include "in_cksum.h"
#include "packet-udp.h"
/* packet-vines.c
* Routines for Banyan VINES protocol packet disassembly
*
- * $Id: packet-vines.c,v 1.29 2001/04/17 06:43:19 guy Exp $
+ * $Id: packet-vines.c,v 1.30 2001/04/23 17:51:34 guy Exp $
*
* Don Lafontaine <lafont02@cn.ca>
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
* Joerg Mayer <jmayer@loplof.de>
*
#include <glib.h>
#include "packet.h"
#include "packet-vines.h"
-#include "packet-ip.h"
#include "etypes.h"
#include "ppptypes.h"
+#include "ipproto.h"
#define UDP_PORT_VINES 573
*
* Heikki Vatiainen <hessu@cs.tut.fi>
*
- * $Id: packet-vrrp.c,v 1.14 2001/01/22 03:33:45 guy Exp $
+ * $Id: packet-vrrp.c,v 1.15 2001/04/23 17:51:34 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
*
#include <string.h>
#include <glib.h>
#include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
#include "in_cksum.h"
static gint proto_vrrp = -1;