Re: Re: CAN you give me a piece of sample code to implement this iptablescommand? thanks

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

 



So there is no APIs we can use to manipulate the kernel's iptables, except invoking the "iptables" command from shell? so wired, it should be have some APIs to do the same as the "iptables" does.          

2008-05-11                    



发件人: Patrick McHardy 
发送时间: 2008-05-11  23:26:42 
收件人: cyx 
抄送: netfilter-devel 
主题: Re: CAN you give me a piece of sample code to implement this iptablescommand? thanks 
 
cyx wrote:
> HI, all:
> 
> the command is "iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE"
> 
> how to write the code using libiptc to implement this? It is hard to get enough useful information about programing with libiptc APIs, so can you give me the sample code ? thanks a lot!
libiptc doesn't provide a API for external programs, its purely
for iptables use. You *can* use it (at least some people do),
but we give no guarantees that it stays stable and additionally
it used to leak memory (not sure about the state today).
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
__________ NOD32 3040 (20080419) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32cn.com
?韬{.n?????%??檩??w?{.n???租??庄z_??n?■???h?璀?{?夸z罐?+€?zf"?????i?????_璁?:+v??撸?


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux