diff options
author | maxim <maxim@FreeBSD.org> | 2002-12-15 09:44:02 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2002-12-15 09:44:02 +0000 |
commit | 78a8f7b1542afa7221a4482ae6b7eb25edc276a5 (patch) | |
tree | 25b94d47d6bd9290b434c45e8a483d35124c6add | |
parent | 523771c06acff197263964274492a9ba7ba01c6c (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/netinet/ip_fw2.c | 2 |
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: |