summaryrefslogtreecommitdiff
path: root/print-igrp.c
diff options
context:
space:
mode:
authorguy <guy>2000-09-23 08:54:24 +0000
committerguy <guy>2000-09-23 08:54:24 +0000
commit536f5125835b031330f472aebed8241a1718b018 (patch)
treea334e9acc3b3104a347ebfebffead00d12f19c68 /print-igrp.c
parent7b50febe28e54e076a9917164eeddec4bc7a170e (diff)
downloadtcpdump-536f5125835b031330f472aebed8241a1718b018.tar.gz
Add an "ip.h" header, to declare the IP stuff needed by dissectors, and
have dissectors include them rather than <netinet/ip.h> or <netinet/ip_var.h>, if they actually need that stuff. Put the declarations of the ICMP stuff directly into "print-icmp.c". Remove all unnecessary includes of <netinet/ip*.h> files. Copy the byte-order stuff from "nameser.h" into "tcp.h".
Diffstat (limited to 'print-igrp.c')
-rw-r--r--print-igrp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/print-igrp.c b/print-igrp.c
index b3eead12..0d4473b9 100644
--- a/print-igrp.c
+++ b/print-igrp.c
@@ -23,7 +23,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.13 2000-09-23 08:26:34 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.14 2000-09-23 08:54:30 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -36,8 +36,6 @@ static const char rcsid[] =
#include <netinet/in.h>
#include <netinet/in_systm.h>
-#include <netinet/ip.h>
-#include <netinet/ip_var.h>
#include <errno.h>
#include <stdio.h>
@@ -45,6 +43,7 @@ static const char rcsid[] =
#include "interface.h"
#include "addrtoname.h"
#include "igrp.h"
+#include "ip.h"
#include "extract.h" /* must come after interface.h */
static void