X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f6fa6a40d4156cdf5dea882024beb7b10d2412f1..2534d28e343f7d50a813a801c9c59dfedfea1bbd:/print-ospf.c diff --git a/print-ospf.c b/print-ospf.c index 92945b39..098cbdf2 100644 --- a/print-ospf.c +++ b/print-ospf.c @@ -23,7 +23,11 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.25 1999-10-17 21:37:14 mcr Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ospf.c,v 1.30 2001-06-15 22:17:34 fenner Exp $ (LBL)"; +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" #endif #include @@ -31,8 +35,6 @@ static const char rcsid[] = #include #include -#include -#include #include #include @@ -42,6 +44,8 @@ static const char rcsid[] = #include "ospf.h" +#include "ip.h" + struct bits { u_int32_t bit; const char *str; @@ -505,10 +509,6 @@ 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 */ - (void) printf("%s > %s:", - ipaddr_string(&ip->ip_src), - ipaddr_string(&ip->ip_dst)); /* XXX Before we do anything else, strip off the MD5 trailer */ TCHECK(op->ospf_authtype);