[olsr-dev] calling iptables within C code

Holger Steudtner (spam-protected)
Thu Aug 24 21:37:27 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I need to set the iptables Rule

"iptables -A INPUT -i eth2 -p udp --dport ! 698 -j DROP"

within olsrd to drop data packets not belonging to OLSR.

All I could find for now are some confusing things with modprobs and
iptc_handle_t stuff.

Is it possible to just call the iptables with the options in C code?

Does anyone have an idea?

With best regards,
Holger

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE7f/3EyoHUdZsc54RAsDEAJwPiQuWSToZjXqlz+riU7H1xq327wCfVIjH
gigZTPUCTAGk3iKjFs9jdVQ=
=hUu8
-----END PGP SIGNATURE-----




More information about the Olsr-dev mailing list