All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rick Jones <rick.jones2@hp.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: kaber@trash.net,
	Netfilter Developer Mailing List
	<netfilter-devel@vger.kernel.org>
Subject: Re: libiptc, arptables, ebtables plans or so - and header files
Date: Mon, 10 Nov 2008 10:01:10 -0800	[thread overview]
Message-ID: <491876E6.5000109@hp.com> (raw)
In-Reply-To: <alpine.LNX.1.10.0811101726310.23956@fbirervta.pbzchgretzou.qr>

Jan Engelhardt wrote:
> Hi Patrick and list,
> 
> 
> when Adam sent his xt_LED, I noticed that he avoided to create an 
> xt_LED.h and instead had the definition of the blob structs directly in 
> xt_LED.c and libxt_LED.c. It occurred to me that this has some 
> implications.
> 
> Theoretically, we could kill all {ipt,ip6t,xt}_*.h files in 
> <kernel>/include/linux/netfilter*/ -- since userspace, usually only 
> iptables, does not make use of them anyway, but has its own copies.
> 
> Yes, for simplicity, we let unifdef run over these headers before 
> copying them, but then again, when was the last time you had __KERNEL__ 
> in xt_*.h?
> 
> I really doubt there are any other userspace programs of these 
> files at this time. As I see it, these header files make only sense 
> when you are crafting blobs when interacting with libiptc. I am not 
> aware of any program making such extensive use of libiptc, probably due 
> to libiptc having been very closely kept in the iptables garden.

Well, there are a few of us trying to scale the walls :)  Some may have 
even managed to sneak into the garden, but perhaps the bugspray will 
drive them back out again :)

More seriously though I thought your goal was a libiptc that could 
wander-out from behind the garden walls?  If that were to happen, 
wouldn't that want some form of .h files, and perhaps even taking the 
copies out of iptables itself?

rick jones

  reply	other threads:[~2008-11-10 18:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-10 16:48 libiptc, arptables, ebtables plans or so - and header files Jan Engelhardt
2008-11-10 18:01 ` Rick Jones [this message]
2008-11-10 18:07 ` Patrick McHardy
2008-11-10 18:47   ` Jan Engelhardt
2008-11-12 11:13     ` Patrick McHardy
2008-11-10 18:53   ` Rick Jones
2008-11-10 19:09     ` Jan Engelhardt

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=491876E6.5000109@hp.com \
    --to=rick.jones2@hp.com \
    --cc=jengelh@medozas.de \
    --cc=kaber@trash.net \
    --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 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.