]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ospf.c
Remove unneeded #includes
[tcpdump] / print-ospf.c
index a3301cd333ca5227efe3b1004e08e8bbcaaf4684..3d67cb3ed9bb08886267f1311d438506b574d18a 100644 (file)
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.24 1999-10-07 23:47:12 mcr Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.29 2000-09-29 04:58:45 guy Exp $ (LBL)";
+#endif
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
 #endif
 
 #include <sys/param.h>
@@ -31,9 +35,6 @@ static const char rcsid[] =
 #include <sys/socket.h>
 
 #include <netinet/in.h>
-#include <netinet/in_systm.h>
-#include <netinet/ip.h>
-#include <netinet/ip_var.h>
 
 #include <ctype.h>
 #include <stdio.h>
@@ -43,6 +44,8 @@ static const char rcsid[] =
 
 #include "ospf.h"
 
+#include "ip.h"
+
 struct bits {
        u_int32_t bit;
        const char *str;
@@ -507,9 +510,11 @@ ospf_print(register const u_char *bp, register u_int length,
        op = (struct ospfhdr *)bp;
        ip = (struct ip *)bp2;
        /* Print the source and destination address  */
+#if 0
        (void) printf("%s > %s:",
            ipaddr_string(&ip->ip_src),
            ipaddr_string(&ip->ip_dst));
+#endif
 
         /* XXX Before we do anything else, strip off the MD5 trailer */
         TCHECK(op->ospf_authtype);