Linux Netfilter discussions
 help / color / mirror / Atom feed
* Text based filesystem interfaces (instead of netlink)
@ 2007-11-30 11:57 Enrico Weigelt
  2007-11-30 12:42 ` G.W. Haywood
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Weigelt @ 2007-11-30 11:57 UTC (permalink / raw)
  To: netfilter team


Hi folks,

while tracking some problems with an pynix based distro (they've
changed some bit in the kernel<->userland interface), I wondered 
why netfilter doesn't do the kernel interface entirely via an
synthetic filesystem (or maybe within sysfs). 

IMHO evrything could be very easy if the netfilter objects 
(tables, chains, rules, etc) were represented by an fs tree.
For example we would have no binary dependencies between 
kernel and userland.

I'm currently playing around with Plan9 and 9P. It's amazing how
simple things can be if evrything's (really!) a file :)


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------

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

* Re: Text based filesystem interfaces (instead of netlink)
  2007-11-30 11:57 Text based filesystem interfaces (instead of netlink) Enrico Weigelt
@ 2007-11-30 12:42 ` G.W. Haywood
  2007-12-01 19:32   ` Enrico Weigelt
  0 siblings, 1 reply; 4+ messages in thread
From: G.W. Haywood @ 2007-11-30 12:42 UTC (permalink / raw)
  To: Enrico Weigelt; +Cc: netfilter team

Hi there,

On Fri, 30 Nov 2007, Enrico Weigelt wrote:

> ... I wondered why netfilter doesn't do the kernel interface
> entirely via an synthetic filesystem (or maybe within sysfs).  ...

Performance?

--

73,
Ged.

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

* Re: Text based filesystem interfaces (instead of netlink)
  2007-11-30 12:42 ` G.W. Haywood
@ 2007-12-01 19:32   ` Enrico Weigelt
  2007-12-01 22:05     ` G.W. Haywood
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Weigelt @ 2007-12-01 19:32 UTC (permalink / raw)
  To: netfilter team

* G.W. Haywood <ged@jubileegroup.co.uk> wrote:
> Hi there,
> 
> On Fri, 30 Nov 2007, Enrico Weigelt wrote:
> 
> > ... I wondered why netfilter doesn't do the kernel interface
> > entirely via an synthetic filesystem (or maybe within sysfs).  ...
> 
> Performance?

Really ? 
How often are the netfilter rules touched ? More than once a day ? 
And is it really that much more expensive to call sscanf() than
first creating the netlink packages and later parsing them again ?


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------

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

* Re: Text based filesystem interfaces (instead of netlink)
  2007-12-01 19:32   ` Enrico Weigelt
@ 2007-12-01 22:05     ` G.W. Haywood
  0 siblings, 0 replies; 4+ messages in thread
From: G.W. Haywood @ 2007-12-01 22:05 UTC (permalink / raw)
  To: Enrico Weigelt; +Cc: netfilter team

Hi there,

On Sat, 1 Dec 2007, Enrico Weigelt wrote:

> * G.W. Haywood <ged@jubileegroup.co.uk> wrote:
> >
> > On Fri, 30 Nov 2007, Enrico Weigelt wrote:
> >
> > > ... I wondered why netfilter doesn't do the kernel interface
> > > entirely via an synthetic filesystem (or maybe within sysfs).  ...
> >
> > Performance?
>
> Really ?
> How often are the netfilter rules touched ? More than once a day ?
> And is it really that much more expensive to call sscanf() than
> first creating the netlink packages and later parsing them again ?

It was just a suggestion.

http://lists.netfilter.org/pipermail/netfilter/2007-July/069325.html

--

73,
Ged.

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

end of thread, other threads:[~2007-12-01 22:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-30 11:57 Text based filesystem interfaces (instead of netlink) Enrico Weigelt
2007-11-30 12:42 ` G.W. Haywood
2007-12-01 19:32   ` Enrico Weigelt
2007-12-01 22:05     ` G.W. Haywood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox