diff options
| author | 2000-10-03 14:21:56 +0000 | |
|---|---|---|
| committer | 2000-10-03 14:21:56 +0000 | |
| commit | 9da4fe85683b8cef9158e4366a37df9d9659e34a (patch) | |
| tree | 6605576c35abd6aee39ffe33e2551098151dcb47 /usr.sbin/tcpdump/print-rip.c | |
| parent | More careful ntohs/ntohl etc. From Gunnar Lindberg <lindberg@cdg.chalmers.se> (diff) | |
| download | wireguard-openbsd-9da4fe85683b8cef9158e4366a37df9d9659e34a.tar.xz wireguard-openbsd-9da4fe85683b8cef9158e4366a37df9d9659e34a.zip | |
Compile with -Wall. Add $OpenBSD$. (jakob@ ok)
Diffstat (limited to 'usr.sbin/tcpdump/print-rip.c')
| -rw-r--r-- | usr.sbin/tcpdump/print-rip.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-rip.c b/usr.sbin/tcpdump/print-rip.c index bb746dcdb38..d12c52306a3 100644 --- a/usr.sbin/tcpdump/print-rip.c +++ b/usr.sbin/tcpdump/print-rip.c @@ -1,3 +1,5 @@ +/* $OpenBSD: print-rip.c,v 1.8 2000/10/03 14:21:57 ho Exp $ */ + /* * Copyright (c) 1989, 1990, 1991, 1993, 1994, 1996 * The Regents of the University of California. All rights reserved. @@ -21,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-rip.c,v 1.7 2000/06/18 09:39:28 jakob Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-rip.c,v 1.8 2000/10/03 14:21:57 ho Exp $ (LBL)"; #endif #include <sys/param.h> @@ -36,6 +38,7 @@ static const char rcsid[] = #include <netinet/udp_var.h> #include <stdio.h> +#include <ctype.h> #include "interface.h" #include "addrtoname.h" @@ -171,9 +174,11 @@ rip_print(const u_char *dat, u_int length) case 0: /* RFC 1058 */ printf(" RIPv0: "); +#if 0 /* XXX this is broken, ni is uninitialized */ rip_printblk((u_char *)&ni->rip_family, (u_char *)&ni->rip_metric + sizeof(ni->rip_metric)); +#endif break; default: switch (rp->rip_cmd) { |
