From bcd3b68dd2a80e10e44f302beeaa58573314da72 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Tue, 29 Dec 2009 00:02:57 +0000 Subject: [PATCH] we really need htonl() here, see the comment a few lines above in the code. --- sys/netinet/ipfw/ip_fw2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ipfw/ip_fw2.c b/sys/netinet/ipfw/ip_fw2.c index bf10214263d..58a88dc6503 100644 --- a/sys/netinet/ipfw/ip_fw2.c +++ b/sys/netinet/ipfw/ip_fw2.c @@ -1377,7 +1377,7 @@ do { \ else if (v == 2) key = htonl(dst_port); else if (v == 3) - key = htons(src_port); + key = htonl(src_port); else if (v == 4 || v == 5) { check_uidgid( (ipfw_insn_u32 *)cmd,