summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/print-rip.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2000-10-03 14:21:58 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2000-10-03 14:21:58 +0000
commit11ea47c17193f4dfba0149742e2678058551a2eb (patch)
treedeb56a90cfa4c5be5177cdffc1fc3c15383b2be3 /usr.sbin/tcpdump/print-rip.c
parent23388695ba5e97074c78403599072d12c67c3c2b (diff)
Compile with -Wall. Add $OpenBSD$. (jakob@ ok)
Diffstat (limited to 'usr.sbin/tcpdump/print-rip.c')
-rw-r--r--usr.sbin/tcpdump/print-rip.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-rip.c b/usr.sbin/tcpdump/print-rip.c
index b25aaeb576c..fddadd701e8 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: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-rip.c,v 1.7 2000/06/18 09:39:28 jakob Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/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) {