arptables issue with user-defined chains and -j RETURN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm using version 0.0.3-3 of arptables (curently with a 2.6.20 kernel, soon
to be upgraded) and it seems like explicit and implicit RETURNs are not working.
What I believe is happening is that arptables includes its own version of
arp_tables.h (actually, two identical copies), with a definition for ARPT_RETURN.
Specifically, it defines it as:

#define ARPT_RETURN (-NF_MAX_VERDICT - 1)

while the kernel defines it as XT_RETURN, which in turn defines it as

#define XT_RETURN (-NF_REPEAT - 1)

The end result seems to be that rules that explicitly or implicitly use the
target RETURN actually end up with the target STOP, and so returns from
chains don't work.  Changing the definition of ARPT_RETURN in arptables to
match the definition of XT_RETURN appears to fix the problem.

--
Ben Gamsa             ben@xxxxxxxxxxxxxxxx
SOMA Networks, Inc.   312 Adelaide St. W. Suite 600 Toronto, Ontario, M5V1R2
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux