mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
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:
parent
65b8577640
commit
18f13da2be
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105886
@ -1608,8 +1608,8 @@ ipfw_chk(struct ip_fw_args *args)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user