diff options
author | luigi <luigi@FreeBSD.org> | 2002-10-24 18:01:53 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2002-10-24 18:01:53 +0000 |
commit | ddc23fad24abdd9527d0e8966d285a099a700b4e (patch) | |
tree | 0a9d3653b3f5a1b3d483935a1d5357c4e8d8099d /sys/netinet/ip_fw2.c | |
parent | d40d2f4e741a87b5f72d543254815829baf865bc (diff) | |
download | FreeBSD-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.c | 4 |
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; |