Skip to contentSkip to conversation

Text based filesystem interfaces (instead of netlink)

DISCUSSION Enrico Weigelt 2 participants 4 messages Nov 30, 2007 – Dec 1, 2007

lore
Share & tools
lore
#0 lore raw

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

Signature · 8 lines
---------------------------------------------------------------------
 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/
---------------------------------------------------------------------
#1 lore raw

Hi there,

Quoted 2 lines · Enrico Weigelt

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

Performance?

--

73,
Ged.

#2 lore raw
Quoted 8 lines · G.W. Haywood

Hi there,

Quoted 2 lines · Enrico Weigelt

... 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

Signature · 8 lines
---------------------------------------------------------------------
 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/
---------------------------------------------------------------------
#3 lore raw

Hi there,

Quoted 7 lines · Enrico Weigelt
Quoted 6 lines · G.W. Haywood
Quoted 2 lines · Enrico Weigelt

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

Quoted 6 lines
Quoted 1 line

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.