summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw2.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-10-24 18:01:53 +0000
committerluigi <luigi@FreeBSD.org>2002-10-24 18:01:53 +0000
commitddc23fad24abdd9527d0e8966d285a099a700b4e (patch)
tree0a9d3653b3f5a1b3d483935a1d5357c4e8d8099d /sys/netinet/ip_fw2.c
parentd40d2f4e741a87b5f72d543254815829baf865bc (diff)
downloadFreeBSD-src-ddc23fad24abdd9527d0e8966d285a099a700b4e.zip
FreeBSD-src-ddc23fad24abdd9527d0e8966d285a099a700b4e.tar.gz
src and dst address were erroneously swapped in SRC_SET and DST_SET
commands. Use the correct one. Also affects ipfw2 in -stable.
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r--sys/netinet/ip_fw2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index c3c90d8..9921a43 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -1608,8 +1608,8 @@ check_body:
u_int32_t *d = (u_int32_t *)(cmd+1);
u_int32_t addr =
cmd->opcode == O_IP_DST_SET ?
- args->f_id.src_ip :
- args->f_id.dst_ip;
+ args->f_id.dst_ip :
+ args->f_id.src_ip;
if (addr < d[0])
break;
OpenPOWER on IntegriCloud