netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Katia Sarsempagieva <katias@iit.demokritos.gr>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: iptables-dev Source Example
Date: Mon, 8 Oct 2012 17:22:37 +0200	[thread overview]
Message-ID: <20121008152237.GA8350@1984> (raw)
In-Reply-To: <5072D6F8.2010707@iit.demokritos.gr>

On Mon, Oct 08, 2012 at 04:36:56PM +0300, Katia Sarsempagieva wrote:
> Hello everyone!
> 
> I'm totally new to the iptables development sphere, so I would like
> to kindly request for a favor...
> 
> I have installed the iptables-dev package on my Debian Linux machine.
> What I want to do is to write my very own program using the iptables
> library to query the interface information
> of various machines (queues, lost packets, total packets etc).
> 
> But no matter how much I've tried to find a single tutorial or a
> source code sample (with the compiler command, of cource)
> I failed.
> So, can any of you please help me out? Maybe give me a tip on where
> to search or pass me a link to a tutorial page
> or anything that could contain a program sample and compilation
> instructions..?

I don't think you'll find much information. The library that iptables
provides is mostly internal. We know of people that has been tinkering
with it in their projects, but the API has not been stable along years
and it is not documented. I expect to solve this situation soon.

I'm afraid that the only reference you have is the source code by now.
Good luck.

  reply	other threads:[~2012-10-08 15:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-08 13:36 iptables-dev Source Example Katia Sarsempagieva
2012-10-08 15:22 ` Pablo Neira Ayuso [this message]
2012-10-08 18:42   ` Maciej Żenczykowski
2012-10-09 15:33     ` Katia S.
2012-10-09 15:55       ` Jan Engelhardt
2012-10-09 17:23         ` Katia S.
2012-10-09 22:08           ` Jan Engelhardt
     [not found]           ` <5076A36D.8020505@samsung.com>
2012-10-11 10:49             ` Katia S.
2012-10-09 15:05   ` Giuseppe Longo

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=20121008152237.GA8350@1984 \
    --to=pablo@netfilter.org \
    --cc=katias@iit.demokritos.gr \
    --cc=netfilter-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).