Re: please help me.......

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

 



On Friday 19 September 2003 11:55, Vijay Angelo wrote:
> hi
>  I m one among the member of this list ,i have a problem with
> libiptc...please look after if u can do it.
>  I want to insert one rule using the iptc_insert_entry function in
> libiptc....
>  As i m new to netfilter ,libiptc ..i m struggling  a lot..i hope u
> can help me .
>
>  Just give me an information about how to fill the target information
> in the ip_entry structure ...and the  i  target_offset field ...

Well, using the library is complicated. The functions themselves are 
easy to understand how to call, but the format of a rule is very 
complicated.

It is something like generic data applicable to all rules, then data for 
specific match extensions and then data for any target extension.

However is all allocated and used through structs placed inside opaque 
memory chunks, so it is very difficult to explain in an email.

Your best bet is looking through the code for iptables (iptables.c) and 
the various extensions.

-- 
A: No. See http://www.netmeister.org/news/learn2quote.html
Q: Should I include quotations after my reply ?



[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