From 9cc4ae4f4f1612d33c2a9a57b4ad4471f50e0419 Mon Sep 17 00:00:00 2001 From: kstailey Date: Tue, 8 Jul 1997 13:15:22 +0000 Subject: countbits() uses network byte order, not host byte order; enami tsugutomo, NetBSD PR 3830 --- sbin/ipnat/ipnat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/ipnat') diff --git a/sbin/ipnat/ipnat.c b/sbin/ipnat/ipnat.c index 4fbba89efd9..6318c2e3e55 100644 --- a/sbin/ipnat/ipnat.c +++ b/sbin/ipnat/ipnat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipnat.c,v 1.16 1997/06/23 17:02:43 kstailey Exp $ */ +/* $OpenBSD: ipnat.c,v 1.17 1997/07/08 13:15:21 kstailey Exp $ */ /* * (C)opyright 1993,1994,1995 by Darren Reed. * @@ -204,7 +204,7 @@ void *ptr; else printf("%s", inet_ntoa(np->in_in[1])); printf(" -> %s/", inet_ntoa(np->in_out[0])); - bits = countbits(ntohl(np->in_out[1].s_addr)); + bits = countbits(np->in_out[1].s_addr); if (bits != -1) printf("%d ", bits); else -- cgit v1.2.3