From 18f13da2be9a9da950e720131702e428ed3ad7cb Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 24 Oct 2002 18:01:53 +0000 Subject: [PATCH] src and dst address were erroneously swapped in SRC_SET and DST_SET commands. Use the correct one. Also affects ipfw2 in -stable. --- sys/netinet/ip_fw2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index c3c90d845ca..9921a433398 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;