All of lore.kernel.org
 help / color / mirror / Atom feed
* ipsets: examples?
@ 2010-12-20  4:37 Reuben Martin
  2010-12-20 15:07 ` Reuben Martin
  2010-12-20 15:45 ` Jozsef Kadlecsik
  0 siblings, 2 replies; 8+ messages in thread
From: Reuben Martin @ 2010-12-20  4:37 UTC (permalink / raw)
  To: netfilter


I'm trying to put together an extension to forward udp packets to an arbritary set of destinations using ipsets. Specifically I want the extension to be able to take either an ipmap or iphash as a set of destinations for the forwarded udp packets. (I'm starting with the rawdnat, stripping out the tcp code, and changing it so that it duplicates the packet as needed for destinations instead of changing the dest address in the origional packet.

But I'm having a hard time finding code examples of how to use ipsets. How do I take an ipset as an argument for an extension? How do I test the set type to make sure it's an ipmap or iphash? How do I iterate over the set? Is it an array, linked list, etc?

I've only been poking around for a couple hours with the xtables code, so I am by no means very familiar with the API.

-Reuben

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-12-22 16:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20  4:37 ipsets: examples? Reuben Martin
2010-12-20 15:07 ` Reuben Martin
2010-12-20 15:45 ` Jozsef Kadlecsik
2010-12-20 20:18   ` Reuben Martin
2010-12-21  9:36     ` Jozsef Kadlecsik
2010-12-21 16:54       ` Reuben Martin
2010-12-22 10:45         ` Jozsef Kadlecsik
2010-12-22 16:21           ` Reuben Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.