aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-08-26 12:40:05 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-08-26 12:40:05 +0000
commit87414cb81d55f47bb20b78ce119fd3172696bbcb (patch)
treea45fa6d51d167853a8b53a37b79d9a1947a5fa96 /usr.sbin
parent46babfb66f4aab7fe1edaf2ab72d4afaa79ee875 (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/tcpdump/print-rip.c6
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 f305cb033e8f..319d95dbc3df 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]);