Forgot this one: properly initialize an address set when the set
size is less than 32 bits (/28 mask or more). Also remove a debugging fprintf().
This commit is contained in:
parent
52bc23ab8a
commit
6136001211
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101117
@ -1569,9 +1569,7 @@ fill_ip(ipfw_insn_ip *cmd, char *av)
|
|||||||
d = (u_int32_t *)&cmd->mask;
|
d = (u_int32_t *)&cmd->mask;
|
||||||
cmd->o.opcode = O_IP_DST_SET; /* default */
|
cmd->o.opcode = O_IP_DST_SET; /* default */
|
||||||
cmd->o.len |= F_INSN_SIZE(ipfw_insn_u32) + (cmd->o.arg1+31)/32;
|
cmd->o.len |= F_INSN_SIZE(ipfw_insn_u32) + (cmd->o.arg1+31)/32;
|
||||||
fprintf(stderr,"-- set size %d cmdlen %d\n",
|
for (i = 0; i < (cmd->o.arg1+31)/32 ; i++)
|
||||||
cmd->o.arg1, cmd->o.len );
|
|
||||||
for (i = 0; i < cmd->o.arg1/32 ; i++)
|
|
||||||
d[i] = 0; /* clear masks */
|
d[i] = 0; /* clear masks */
|
||||||
|
|
||||||
av = p+1;
|
av = p+1;
|
||||||
|
Loading…
Reference in New Issue
Block a user