Move the definition of IP_PROTO_IGRP to "packet-ip.h", and put an entry
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 5 Mar 2001 20:11:36 +0000 (20:11 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 5 Mar 2001 20:11:36 +0000 (20:11 +0000)
for IGRP in the table in "ipproto.c".

Get rid of a duplicate entry for TCP in the same table, and also get rid
of the entry for IP_PROTO_IPV4 right after IP_PROTO_IPIP, as
IP_PROTO_IPIP and IP_PROTO_IPV4 are both 4.

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

ipproto.c
packet-igrp.c
packet-ip.h

index 370feba6023c6f36480cfa01ea4d27eaa8443862..36f524a0e0f57bd301846cf80cf39f546cfcaa2d 100644 (file)
--- a/ipproto.c
+++ b/ipproto.c
@@ -1,7 +1,7 @@
 /* ipproto.c
  * Routines for converting IPv4 protocol/v6 nxthdr field into string
  *
- * $Id: ipproto.c,v 1.9 2000/08/11 13:35:31 deniel Exp $
+ * $Id: ipproto.c,v 1.10 2001/03/05 20:11:36 guy Exp $
  *
  * Gilbert Ramirez <gram@xiexie.org>
  *
@@ -53,7 +53,8 @@
 static const value_string ipproto_val[] = {
     { IP_PROTO_ICMP,   "ICMP" },
     { IP_PROTO_IGMP,   "IGMP" },
-    { IP_PROTO_EIGRP,  "IGRP/EIGRP" },
+    { IP_PROTO_EIGRP,  "EIGRP" },
+    { IP_PROTO_IGRP,   "IGRP" },
     { IP_PROTO_TCP,    "TCP" },
     { IP_PROTO_UDP,    "UDP" },
     { IP_PROTO_OSPF,   "OSPF" },
@@ -65,8 +66,9 @@ static const value_string ipproto_val[] = {
     { IP_PROTO_IGMP,   "IGMP" },
     { IP_PROTO_GGP,    "GGP" },
     { IP_PROTO_IPIP,   "IPIP" },
+#if 0
     { IP_PROTO_IPV4,   "IPv4" },
-    { IP_PROTO_TCP,    "TCP" },
+#endif
     { IP_PROTO_EGP,    "EGP" },
     { IP_PROTO_PUP,    "PUP" },
     { IP_PROTO_UDP,    "UDP" },
index 86a31f1b3e9c77a39f136912165f00707eeb1dae..c4180bcd3ecc9de990acd446f5e5ec75d23a9c26 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for IGRP dissection
  * Copyright 2000, Paul Ionescu <paul@acorp.ro>
  * 
- * $Id: packet-igrp.c,v 1.5 2001/01/22 03:33:45 guy Exp $
+ * $Id: packet-igrp.c,v 1.6 2001/03/05 20:11:36 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -36,8 +36,8 @@
 #include <string.h>
 #include <glib.h>
 #include "packet.h"
+#include "packet-ip.h"
 
-#define IP_PROTO_IGRP 9
 #define IGRP_HEADER_LENGTH 12
 #define IGRP_ENTRY_LENGTH 14
 
index 50b6de63c3ef50d5e0ce537e0b497640ac35baba..0ec24835d5c018d6aa02b2bb4772a723d24126b3 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-ip.h
  * Definitions for IP packet disassembly structures and routines
  *
- * $Id: packet-ip.h,v 1.17 2001/01/22 03:33:45 guy Exp $
+ * $Id: packet-ip.h,v 1.18 2001/03/05 20:11:36 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -38,6 +38,7 @@ void capture_ip(const u_char *, int, packet_counts *);
 #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 */