All of lore.kernel.org
 help / color / mirror / Atom feed
From: Reuben Martin <reuben.m@gmail.com>
To: netfilter@vger.kernel.org
Subject: Re: ipsets: examples?
Date: Mon, 20 Dec 2010 09:07:41 -0600	[thread overview]
Message-ID: <201012200907.41439.reuben.m@gmail.com> (raw)
In-Reply-To: <201012192237.43878.reuben.m@gmail.com>

On Sunday, December 19, 2010, Reuben Martin wrote:
> 
> 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
> 

Or, am I perhaps mistaken assuming that ipsets provides an api for other extensions to use sets as a dynamic target?

  reply	other threads:[~2010-12-20 15:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20  4:37 ipsets: examples? Reuben Martin
2010-12-20 15:07 ` Reuben Martin [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201012200907.41439.reuben.m@gmail.com \
    --to=reuben.m@gmail.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.