summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2000-12-05 08:16:16 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2000-12-05 08:16:16 +0000
commit788722f908f809300a1cc2a77416e26d0952b3c6 (patch)
treec44c0d6d10bdff6005000af5206e5c09c8ad4fc7 /usr.sbin/tcpdump
parentf4e8b041ddebeee76f1e23318ce09c53f73f5904 (diff)
fix RIPv0 (RFC 1058) printing; <james@squish.net>
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/print-rip.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/tcpdump/print-rip.c b/usr.sbin/tcpdump/print-rip.c
index 2cb6b201d0c..f8cd64b133e 100644
--- a/usr.sbin/tcpdump/print-rip.c
+++ b/usr.sbin/tcpdump/print-rip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-rip.c,v 1.9 2000/10/13 08:32:16 jakob Exp $ */
+/* $OpenBSD: print-rip.c,v 1.10 2000/12/05 08:16:15 jakob Exp $ */
/*
* Copyright (c) 1989, 1990, 1991, 1993, 1994, 1996
@@ -23,7 +23,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-rip.c,v 1.9 2000/10/13 08:32:16 jakob Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-rip.c,v 1.10 2000/12/05 08:16:15 jakob Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -175,11 +175,7 @@ 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
+ rip_printblk((u_char *)(rp + 1), snapend);
break;
default:
switch (rp->rip_cmd) {