diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-02-07 20:06:45 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-02-07 20:06:45 +0000 |
commit | d5341f4eee26d58e136c150d6a0d00d01f6adf1a (patch) | |
tree | 5db7f561d8ab48a13549686a0420665189f378c1 | |
parent | 4b3b1c64948ecdb8720ea74a911ec8f2903018fc (diff) |
fixed order of tests in printnat() so that it catches tcp/udp first
-rw-r--r-- | sbin/ipnat/ipnat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ipnat/ipnat.c b/sbin/ipnat/ipnat.c index 4f9aafb1a55..80c1f9834d2 100644 --- a/sbin/ipnat/ipnat.c +++ b/sbin/ipnat/ipnat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipnat.c,v 1.8 1997/02/07 19:33:49 kstailey Exp $ */ +/* $OpenBSD: ipnat.c,v 1.9 1997/02/07 20:06:44 kstailey Exp $ */ /* * (C)opyright 1993,1994,1995 by Darren Reed. * @@ -188,12 +188,12 @@ int verbose; printf("%s", inet_ntoa(np->in_out[1])); if (np->in_port[0] || np->in_port[1]) { printf(" portmap"); - if (np->in_flags & IPN_TCP) + if (np->in_flags & IPN_TCPUDP) + printf(" tcp/udp"); + else if (np->in_flags & IPN_TCP) printf(" tcp"); else if (np->in_flags & IPN_UDP) printf(" udp"); - else if (np->in_flags & IPN_TCPUDP) - printf(" tcp/udp"); printf(" %d:%d", ntohs(np->in_port[0]), ntohs(np->in_port[1])); } |