src and dst address were erroneously swapped in SRC_SET and DST_SET

commands.  Use the correct one. Also affects ipfw2 in -stable.
This commit is contained in:
Luigi Rizzo 2002-10-24 18:01:53 +00:00
parent 65b8577640
commit 18f13da2be

View file

@ -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;