phil at ipom.com
Fri Mar 16 09:44:07 CET 2007
Pablo Neira Ayuso wrote:
> Phil Dibowitz wrote:
>> In the new API the flags bitmap I mentioned above is gone.
>> What's the "right" way to determine stuff like (flags &
>> It used to get passed into the callback in the old API, but no longer
> There is a nfct_attr_is_set(...) function to check if an attribute is
> set or not.
Ah. Perfect. Thanks.
One other question - I noticed that I can't seem to delete ICMP states. This
is true both from my own code, as well as from conntrack(8):
[phil at rider libnetfilter_conntrack]$ sudo grep icmp /proc/net/ip_conntrack
icmp 1 29 src=10.1.1.2 dst=220.127.116.11 type=8 code=0 id=43603
[UNREPLIED] src=18.104.22.168 dst=10.1.1.2 type=0 code=0 id=43603 use=1
[phil at rider libnetfilter_conntrack]$ sudo conntrack -D conntrack -s
10.1.1.2 -d 22.214.171.124 -p icmp --icmp-type 8 --icmp-code 0
NFNETLINK answers: No such file or directory
Operation failed: such conntrack doesn't exist
I get the same thing either way - that the conntrack doesn't exist. I can
delete TCP and UDP just fine, but not ICMP. And just for clarity, yes, I'm
attempting to delete it before it expires (this is easy to check by keeping
iptstate running in a window).
Am I doing something wrong, or can you not delete ICMP states?
Phil Dibowitz phil at ipom.com
Open Source software and tech docs Insanity Palace of Metallica
"Never write it in C if you can do it in 'awk';
Never do it in 'awk' if 'sed' can handle it;
Never use 'sed' when 'tr' can do the job;
Never invoke 'tr' when 'cat' is sufficient;
Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 252 bytes
Desc: OpenPGP digital signature
Url : /pipermail/netfilter-devel/attachments/20070316/5a381abb/signature.pgp
More information about the netfilter-devel