--------------EDEE81A21A06F649C5D95504
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Rusty,
while I'm trying to append a rule with the DROP target, iptables give me
the following message:
# iptables: Invalid argument
Here is a correction for this little bug:
In the standard_map() function of the file libiptc/libiptc.c (line 832);
in the test, just add the call to the IPT_ALIGN() macro with the size of
STRUCT_STANDARD_TARGET as arguments....so, the new test is now:
if (t->target.u.target_size !=
IPT_ALIGN(sizeof(STRUCT_STANDARD_TARGET))) {
with this patch, iptables seems to work fine...
PS: in the libiptc/libiptc.c file, there is no more use of
sizeof(STRUCT_STANDARD_TARGET) without the call to IPT_ALIGN()....
Christophe
--
Christophe Burki
Software Engineer
Lightning Instrumentation SA
mail: christophe.burki@lightning.ch
web : http://www.lightning.ch
--------------EDEE81A21A06F649C5D95504
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
Hi Rusty,
while I'm trying to append a rule with the DROP target, iptables give
me the following message:
# iptables: Invalid argument
Here is a correction for this little bug:
In the standard_map() function of the file libiptc/libiptc.c (line 832);
in the test, just add the call to the IPT_ALIGN() macro with the size of
STRUCT_STANDARD_TARGET as arguments....so, the new test is now:
if (t->target.u.target_size != IPT_ALIGN(sizeof(STRUCT_STANDARD_TARGET)))
{
with this patch, iptables seems to work fine...
PS: in the libiptc/libiptc.c file, there is no more use of sizeof(STRUCT_STANDARD_TARGET)
without the call to IPT_ALIGN()....
Christophe
--
Christophe Burki
Software Engineer
Lightning Instrumentation SA
mail: christophe.burki@lightning.ch
web : http://www.lightning.ch