Skip to contentSkip to conversation

help with netlink connector

IPSET [email protected] 2 participants 2 messages Oct 29, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

I'm trying to rewrite the ipset sockopt interface with netlink connector introduced in 2.6.14... anyway i need some help and directions.

As far as i have understood ipset adds SO_ IP_SET option to IP and manage the whole stuff through {set|get}sockopt. How can i access this option using connector? do i have to register a connector callback at kernel level using a module and send messages from ipset ??

i need disperate help :D

Regards

#1 lore raw
Quoted 7 lines · On Sat, 29 Oct 2005 [email protected] wrote:

I'm trying to rewrite the ipset sockopt interface with netlink connector introduced in 2.6.14... anyway i need some help and directions.

As far as i have understood ipset adds SO_ IP_SET option to IP and manage the whole stuff through {set|get}sockopt. How can i access this option using connector? do i have to register a connector callback at kernel level using a module and send messages from ipset ??

That'd mean a complete rewriting of the kernel-userspace communication in ipset. You would not want to access the (set|get)sockopt from netlink but replace it with a netlink communication channel. Instead of netlink, the netfilter specific nfnetlink is the proper tool for such a rewriting. (The subject is on the TODO list of ipset.)

Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics

          H-1525 Budapest 114, POB. 49, Hungary