diff options
author | 2000-12-05 08:16:15 +0000 | |
---|---|---|
committer | 2000-12-05 08:16:15 +0000 | |
commit | f32bc33ccad0bbd8817e125f60c6e845ad2baba7 (patch) | |
tree | 6dfd49012afd3dfaf2be26011b1d0c84a1470142 /usr.sbin/tcpdump/print-rip.c | |
parent | Avoid dependency on printf(1) by replacing it with a ksh array. (diff) | |
download | wireguard-openbsd-f32bc33ccad0bbd8817e125f60c6e845ad2baba7.tar.xz wireguard-openbsd-f32bc33ccad0bbd8817e125f60c6e845ad2baba7.zip |
fix RIPv0 (RFC 1058) printing; <james@squish.net>
Diffstat (limited to 'usr.sbin/tcpdump/print-rip.c')
-rw-r--r-- | usr.sbin/tcpdump/print-rip.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/tcpdump/print-rip.c b/usr.sbin/tcpdump/print-rip.c index 13261cf81cb..5a4f520c8b4 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: /home/cvs/src/usr.sbin/tcpdump/print-rip.c,v 1.9 2000/10/13 08:32:16 jakob Exp $ (LBL)"; + "@(#) $Header: /home/cvs/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) { |