Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2009 16:01:22 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r201205 - user/luigi/ipfw3-head/sys/netinet/ipfw
Message-ID:  <200912291601.nBTG1NHp029048@svn.freebsd.org>

index | next in thread | raw e-mail

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,


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912291601.nBTG1NHp029048>