diff options
author | dg <dg@FreeBSD.org> | 1995-08-26 12:40:05 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-08-26 12:40:05 +0000 |
commit | 4ecefb190809aff39c2150e0b1641e77b5632980 (patch) | |
tree | a45fa6d51d167853a8b53a37b79d9a1947a5fa96 /usr.sbin/tcpdump | |
parent | 480af4c9501cbf45c221e212a6df9d64e55a32da (diff) | |
download | FreeBSD-src-4ecefb190809aff39c2150e0b1641e77b5632980.zip FreeBSD-src-4ecefb190809aff39c2150e0b1641e77b5632980.tar.gz |
Fixed bug with decoding RIP packets - removed unnecessary ntohs()'s for
the sa_family.
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/tcpdump/print-rip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/tcpdump/print-rip.c b/usr.sbin/tcpdump/tcpdump/print-rip.c index f305cb0..319d95d 100644 --- a/usr.sbin/tcpdump/tcpdump/print-rip.c +++ b/usr.sbin/tcpdump/tcpdump/print-rip.c @@ -21,7 +21,7 @@ #ifndef lint static char rcsid[] = - "@(#) $Header: print-rip.c,v 1.20 94/06/14 20:18:47 leres Exp $ (LBL)"; + "@(#) $Header: /home/ncvs/src/usr.sbin/tcpdump/tcpdump/print-rip.c,v 1.4 1995/03/08 12:52:40 olah Exp $ (LBL)"; #endif #include <sys/param.h> @@ -47,10 +47,10 @@ static char rcsid[] = static void rip_entry_print(register const struct netinfo *ni) { - if (ntohs(ni->rip_dst.sa_family) != AF_INET) { + if (ni->rip_dst.sa_family != AF_INET) { register int i; - printf(" [family %d:", ntohs(ni->rip_dst.sa_family)); + printf(" [family %d:", ni->rip_dst.sa_family); for (i = 0; i < 14; i += 2) printf(" %02x%02x", (u_char)ni->rip_dst.sa_data[i], (u_char)ni->rip_dst.sa_data[i+1]); |