svn commit: r201205 - user/luigi/ipfw3-head/sys/netinet/ipfw

Luigi Rizzo luigi at FreeBSD.org
Tue Dec 29 16:01:23 UTC 2009


Author: luigi
Date: Tue Dec 29 16:01:22 2009
New Revision: 201205
URL: http://svn.freebsd.org/changeset/base/201205

Log:
  really need htonl() here

Modified:
  user/luigi/ipfw3-head/sys/netinet/ipfw/ip_fw2.c

Modified: user/luigi/ipfw3-head/sys/netinet/ipfw/ip_fw2.c
==============================================================================
--- user/luigi/ipfw3-head/sys/netinet/ipfw/ip_fw2.c	Tue Dec 29 15:58:10 2009	(r201204)
+++ user/luigi/ipfw3-head/sys/netinet/ipfw/ip_fw2.c	Tue Dec 29 16:01:22 2009	(r201205)
@@ -1367,7 +1367,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,


More information about the svn-src-user mailing list