summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2002-12-15 09:44:02 +0000
committermaxim <maxim@FreeBSD.org>2002-12-15 09:44:02 +0000
commit78a8f7b1542afa7221a4482ae6b7eb25edc276a5 (patch)
tree25b94d47d6bd9290b434c45e8a483d35124c6add /sys/netinet
parent523771c06acff197263964274492a9ba7ba01c6c (diff)
downloadFreeBSD-src-78a8f7b1542afa7221a4482ae6b7eb25edc276a5.zip
FreeBSD-src-78a8f7b1542afa7221a4482ae6b7eb25edc276a5.tar.gz
o Fix byte order logging issue: sa.sin_port is already in host byte order.
PR: kern/45964 Submitted by: Sascha Blank <sblank@tiscali.de> Reviewed by: luigi MFC after: 1 week
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_fw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index 46b8ba8..433cb9e 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -492,7 +492,7 @@ ipfw_log(struct ip_fw *f, u_int hlen, struct ether_header *eh,
inet_ntoa(sa->sa.sin_addr));
if (sa->sa.sin_port)
snprintf(SNPARGS(action2, len), ":%d",
- ntohs(sa->sa.sin_port));
+ sa->sa.sin_port);
}
break;
default:
OpenPOWER on IntegriCloud