Move the declarations of IP protocol numbers to "ipproto.h" from
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 23 Apr 2001 17:51:37 +0000 (17:51 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 23 Apr 2001 17:51:37 +0000 (17:51 +0000)
"packet-ip.h".

Fix Gerald's address in some files while we're at it.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3366 f5534014-38df-0310-8fa8-9805f1628bb7

15 files changed:
gtk/decode_as_dlg.c
ipproto.h
packet-eigrp.c
packet-gre.c
packet-icmpv6.c
packet-igrp.c
packet-ip.h
packet-ospf.c
packet-pim.c
packet-rsvp.c
packet-sctp.c
packet-tcp.c
packet-udp.c
packet-vines.c
packet-vrrp.c

index ebcdec2c5741ab3fb3cff2617fb421386aaf60be..4ff496ab3140ffa8bda736f91e8d2e7b21798a26 100644 (file)
@@ -1,6 +1,6 @@
 /* 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.
  *
@@ -44,7 +44,7 @@
 #include "globals.h"
 #include "simple_dialog.h"
 #include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
 #include "ui_util.h"
 
 #undef DEBUG
index aaa7ac6e6cc59daed1b0b08b5046fab436eb5dda..2b5b585dc3da79f425b889278226475083fdb7eb 100644 (file)
--- a/ipproto.h
+++ b/ipproto.h
@@ -1,12 +1,13 @@
 /* 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 */
index b58d1cb2626d6db25880a93cca23bea023306e6f..43b9147c058fea072723ab563172cc71bae7d659 100644 (file)
@@ -2,10 +2,10 @@
  * 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
  *
  * 
@@ -41,7 +41,7 @@
 #include "resolv.h"
 
 #include "atalk-utils.h"
-#include "packet-ip.h"
+#include "ipproto.h"
 #include "packet-ipx.h"
 
 #define EIGRP_UPDATE    0x01
index 2c83d8db737047f4e866458530851518c427d137..546d60804689ba39f14688e3748f5a65d23181ec 100644 (file)
@@ -2,10 +2,10 @@
  * 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;
index f4a7ada75d076d50ec2c86ce182fb1dc946cdaaf..b1825ed0547eb799cf085925a1ff791ce0362c97 100644 (file)
@@ -1,7 +1,7 @@
 /* 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))
index c4180bcd3ecc9de990acd446f5e5ec75d23a9c26..e4bd8001f609f25cfe1f752e321bbe9b870a5119 100644 (file)
@@ -2,10 +2,10 @@
  * 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
@@ -36,7 +36,7 @@
 #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
index 0ec24835d5c018d6aa02b2bb4772a723d24126b3..3436f95e179ff90ee474a6802a58f1d2215ea753 100644 (file)
@@ -1,10 +1,10 @@
 /* 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 */
index 600a5aa58184170423b6a231577a9acefb771dbd..77693f7f7268df0a377f9a6a502559ed4337108e 100644 (file)
@@ -2,7 +2,7 @@
  * 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
@@ -12,7 +12,7 @@
  * 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
  * 
  * 
@@ -48,7 +48,7 @@
 
 #include <glib.h>
 #include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
 #include "in_cksum.h"
 #include "ieee-float.h"
 
index 3e778e735d68291d46244896015bebafd383f031..936111887a5e34b6cbc8f7bbf3e41c0e3d26ad23 100644 (file)
@@ -2,10 +2,10 @@
  * 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
  * 
  * 
@@ -44,7 +44,7 @@
 #endif
 
 #include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
 #include "in_cksum.h"
 
 #define PIM_TYPE(x)    ((x) & 0x0f)
index 86c93d329f3e0b5da98b8c7c8278eb92f28262dc..e11b0bb555132ce5d049b33c72b5eb6e19b17c69 100644 (file)
@@ -3,10 +3,10 @@
  *
  * (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;
 
index 5c137d2a183ddf12a9e0b8fbd384c2391337aa8b..7ab680d69a6d1d178d05c90189779cc274dbd4f6 100644 (file)
@@ -2,7 +2,7 @@
  * 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>
@@ -49,7 +49,7 @@
 #endif
 
 #include "packet.h"
-#include "packet-ip.h"
+#include "ipproto.h"
 
 /* Initialize the protocol and registered fields */
 static int proto_sctp = -1;
index a0e1e7830b9cdc8d86145d69f77da9f1c8ac158e..3e75459461ad8c8e9be902dfe7f4c5d661c79b23 100644 (file)
@@ -1,10 +1,10 @@
 /* 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
  *
  * 
@@ -46,6 +46,7 @@
 
 #include "globals.h"
 #include "resolv.h"
+#include "ipproto.h"
 #include "follow.h"
 #include "prefs.h"
 #include "packet-tcp.h"
index 5d07d8702c68d62802a9b8b7f18816d974d5d9d8..e377ef537fadb29af962c9da845ee3c3128992d3 100644 (file)
@@ -1,10 +1,10 @@
 /* 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 
@@ -44,6 +44,7 @@
 #include <glib.h>
 #include "globals.h"
 #include "resolv.h"
+#include "ipproto.h"
 #include "in_cksum.h"
 
 #include "packet-udp.h"
index 10b4d78e322558915b2d8465c6d2f9ab58863df0..f51370ac694cd60c15eeeb75ad3348a2df1b1c76 100644 (file)
@@ -1,12 +1,12 @@
 /* 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>
  *
@@ -42,9 +42,9 @@
 #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
 
index a5085808693016d325fe642a110be8e7cebb584a..e022a07118b77369a4c4036e27389be55b9780dc 100644 (file)
@@ -4,10 +4,10 @@
  *
  * 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
  *
  * 
@@ -41,7 +41,7 @@
 #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;