Skip to contentSkip to conversation

Condition Module (Looking for last version)

DISCUSSION Gustavo Jr. Alves 3 participants 4 messages Jul 10, 2007 netfilter

lore
Share & tools
lore
#0 lore raw

Hi all,

I´m looking for the last patch version of condition module. I tried SVN / FTP and also "googled", but the newest file I found is this reference:

http://lists.netfilter.org/pipermail/netfilter/2006-April/065500.html

Anybody can tell me where I can get the last patch version and if have any reasons to not be maintained and included in the kernel other than the author´s lack of time.

Thanks in advance

Gustavo

#1 lore raw
Quoted 11 lines · Gustavo Jr. Alves

Hi all,

I´m looking for the last patch version of condition module. I tried SVN / FTP and also "googled", but the newest file I found is this reference:

http://lists.netfilter.org/pipermail/netfilter/2006-April/065500.html

Anybody can tell me where I can get the last patch version and if have any reasons to not be maintained and included in the kernel other than the author´s lack of time.

http://www.nucleus.it/pom-repo/condition.tar.gz

Jan

#2 lore raw

Thanks Jan.

Sorry if it´s a dumb question, but I had tested little this patch and I saw no use for matchsize on checkentry and destroy functions. Am I correct? I tried to remove and had a clean compile o linux-2.6.21.

On the firsts tests on iptables-1.3.7, everything worked fine. Soon I expect to implement on real tests.

My concern is about why it hasn´t incorporated on the mainstream kernel or not have patches on patch-o-matic. Can I help in any way to improve and incorporate this module?

Thank you by the help.

Gustavo

Quoted 14 lines · Jan Engelhardt
Quoted 11 lines · Gustavo Jr. Alves

Hi all,

I´m looking for the last patch version of condition module. I tried SVN / FTP and also "googled", but the newest file I found is this reference:

http://lists.netfilter.org/pipermail/netfilter/2006-April/065500.html

Anybody can tell me where I can get the last patch version and if have any reasons to not be maintained and included in the kernel other than the author´s lack of time.

Quoted 5 lines

http://www.nucleus.it/pom-repo/condition.tar.gz

Jan
--

linux-2.6.21/include/linux/netfilter/xt_condition.h +11 -0
diff -ruN --recursive condition/linux-2.6.21/include/linux/netfilter/xt_condition.h condition.new/linux-2.6.21/include/linux/netfilter/xt_condition.h
@@ -0,0 +1,11 @@
+#ifndef _XT_CONDITION_H
+#define _XT_CONDITION_H
+
+#define CONDITION_NAME_LEN  32
+
+struct condition_info {
+	char name[CONDITION_NAME_LEN];
+	int  invert;
+};
+
+#endif /* _XT_CONDITION_H */
linux-2.6.21/net/netfilter/Kconfig.ladd +12 -0
diff -ruN --recursive condition/linux-2.6.21/net/netfilter/Kconfig.ladd condition.new/linux-2.6.21/net/netfilter/Kconfig.ladd
@@ -0,0 +1,12 @@
+config NETFILTER_XT_MATCH_CONDITION
+        tristate  '"condition" match support'
+        depends on NETFILTER_XTABLES
+        help
+          This option allows you to match firewall rules against condition
+          variables stored in the /proc/net/nf_condition directory.
+
+          N.B.: older versions used /proc/net/ipt_condition. You can
+          reenable it with "compat_dir_name".
+
+          If you want to compile it as a module, say M here and read
+          Documentation/modules.txt.  If unsure, say `N'.
linux-2.6.21/net/netfilter/Makefile.ladd +2 -0
diff -ruN --recursive condition/linux-2.6.21/net/netfilter/Makefile.ladd condition.new/linux-2.6.21/net/netfilter/Makefile.ladd
@@ -0,0 +1,2 @@
+obj-$(CONFIG_NETFILTER_XT_MATCH_PHYSDEV) += xt_physdev.o
+obj-$(CONFIG_NETFILTER_XT_MATCH_CONDITION) += xt_condition.o
linux-2.6.21/net/netfilter/xt_condition.c +315 -0

315 lines not on this page · raw message

#3 lore raw
Quoted 2 lines · Gustavo Jr. Alves

My concern is about why it hasn�t incorporated on the mainstream kernel or not have patches on patch-o-matic.

This patch is part of an external patch-o-matic repository. All externals patchlets are fetched within POM using ./runme --download

Take a look at the following file :

(svn) /trunk/patch-o-matic-ng/sources.list

Condition match, as well as many others, are not part of mainstream or POM because of lack of time/motivation from the Netfilter Core Team to maintain such patchlets themselves.

See
https://lists.netfilter.org/pipermail/netfilter-devel/2006-April/023927.html

Regards,
Samuel