On Wed, Apr 10, 2002 at 09:36:05PM -0400, Zygo Blaxell wrote: > I think that the user-space modules should provide much richer version > information than a simple version number. Simple version numbers are > useless if there are multiple maintainers each extending the code in > different ways and distributing it before it is officially integrated > (i.e. the status quo for netfilter and indeed most of the Linux kernel).
? Where did you get this idea from? Please point me to a single occation where any part of iptables was modified in different ways by different 'maintainers'? The netfilter/iptables project has five maintainers, the core team members. And we have a single point for distributing code changes: the CVS tree. > If the user-space and kernel-space modules check the version string, there > is no danger of my user-space module being accidentally used to configure > your kernel-space module (nor any unpredictable consequences that might > arise from such a mixture). I'm pretty sure iptables already does > this, although not everyone patches the version string when they make > incompatible changes... Please look on how the current model of iptables kernel/userspace communication works. It is very primitive, and there is no way of passing such information back and forth. > Back to user-space. The information you get from iptables about a > module should be something like what you get from --help, but more > machine-readable. Perhaps: > > # iptables -m state --option-list > > would output a list of: > > [...] This is basically what libiptables is supposed to export via it's API to iptables2. Please look at the 'iptables2/libiptables/README' file in CVS and/or read the respective code. > Zygo Blaxell (Laptop) <[EMAIL PROTECTED]> > GPG = D13D 6651 F446 9787 600B AD1E CCF3 6F93 2823 44AD -- Live long and prosper - Harald Welte / [EMAIL PROTECTED] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)