Re: libnetfilter_queue ---- set_mode function not returning .

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

 



> 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.

can u send me the working program (after fix u done ) .

> 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 will try this . and get back to u ... ..
do u want me to try
   NFQNL_COPY_META,
   NFQNL_COPY_PACKET,
these also ???


Thanks,
ratheesh.

2009/8/11 Eric Leblond <eric@xxxxxx>:
> 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/
>
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux