Libnl/rtnl_rule structure

Thomas Graf tgraf at suug.ch
Thu Feb 28 05:27:13 EST 2013


On 02/28/13 at 02:47pm, Jigar Prajapati wrote:
> I have gone through infradead.org site and it is really helpful to me
> regarding libnl. But i'm trying to add rule in iptables using rtnl_rule_add
> API. But I dont know which kind of parameters I should pass to set
> 'rtnl_rule' structure . So pls provide me the details about the 'rtnl_rule'
> structure and which kind of values I have to give to 'rtnl_rule' 's
> members. Thanks in advance.

rtnl_rule refers to routing rules. There is no Netlink based netfilter
API (yet). You will have to use iptables and/or the libraries around
it.



More information about the libnl mailing list