Hi, Le lundi 10 août 2009 à 16:27 +0530, ratheesh k a écrit : > Eric , > > I am running this program on 2.6.25 kernel on qemu emulation . But > if i run this on my fedora linux desktop computer , i am not > facing this problem . > > I dont know whether call is reaching till sendmsg of netlink socket > in af_netlink.c ??? is there any other tool or s/w to test netlink > socket is working fine ??? You could give a try to conntrack-tools (conntrack binary in particular). They also use libnfnetlink. By the way what happen if you only try to get the first bytes : if (nfq_set_mode(qh, NFQNL_COPY_PACKET, 0xff) < 0) { > i already posted a program ( this i got from internet ) to check > nwtlink socket is working fine . > http://marc.info/?l=netfilter&m=124937098723617&w=2 > but this program is not working on my fedora 9 linux desktop also ...... Your code (after some minor unrelated fix, like cb missing in what you send) is correct. It is working correctly on my computer. Further more, the logic is the same as the one used in NuFW which is know to work fine in most (if not all) setup. BR, -- Eric Leblond <eric@xxxxxx> INL: http://www.inl.fr/ NuFW: http://www.nufw.org/
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=