Skip to contentSkip to conversation

Who currently owns ip_conntrack_sip?

DISCUSSION Philip Prindeville 2 participants 4 messages Feb 13, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

Howdy.

I was using this module recently (added support to arno-iptables-firewall and bundled it into AstLinux). Works great. A real lifesaver.

But I did have a couple of minor suggestions to make it more usable.

Can the person who maintains it please contact me?

Thanks,

-Philip

#1 lore raw

Philip,

Quoted 7 lines · On Wednesday, 13. February 2008 06:01:45 you wrote:

I was using this module recently (added support to arno-iptables-firewall and bundled it into AstLinux). Works great. A real lifesaver.

But I did have a couple of minor suggestions to make it more usable.

Can the person who maintains it please contact me?

Just post to this list, they will hear you.

Though general discussions are better suited for the "netfilter" list if it's not development related.

Thomas

#2 lore raw
Quoted 13 lines · Thomas Jarosch

Philip,

Quoted 8 lines · On Wednesday, 13. February 2008 06:01:45 you wrote:

I was using this module recently (added support to arno-iptables-firewall and bundled it into AstLinux). Works great. A real lifesaver.

But I did have a couple of minor suggestions to make it more usable.

Can the person who maintains it please contact me?

Quoted 7 lines

Just post to this list, they will hear you.

Though general discussions are better suited for the "netfilter" list if it's not development related.

Thomas

Ok. I had a simple patch I'd like to see included that makes debugging output dependent on a load-time module parameter, i.e. "debug=1".

It's trivial.

I was also thinking that SIP typically either used as a single port (5060), or as a block of ports (5060:5080).

Allowing specifying eight individual sparse ports isn't really useful.

Specifying 4 ranges of ports would be a lot more handy.

How easily could this be done?

I'm working on the AstLinux project (http://www.astlinux.org) and we are releasing 0.60 to come with a couple of different firewall options that will both leverage this module. In most of the deployments of AstLinux, our operational experience shows that one or two blocks of 5-40 ports is typical (i.e. 95% of all cases).

Thanks,

-Philip

ip_conntrack_sip.c renamed from ip_conntrack_sip.c.orig +6 -6
@@ -20,16 +20,16 @@
 #include <linux/netfilter_ipv4/ip_conntrack_helper.h>
 #include <linux/netfilter_ipv4/ip_conntrack_sip.h>
 
-#if 0
-#define DEBUGP printk
-#else
-#define DEBUGP(format, args...)
-#endif
-
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Christian Hentschel <[email protected]>");
 MODULE_DESCRIPTION("SIP connection tracking helper");
 
+static unsigned int debug = 0;
+module_param(debug, uint, 0);
+MODULE_PARM_DESC(debug, "debug=1 is turn on debug messages");
+
+#define DEBUGP(format, args...) if (debug) printk(KERN_DEBUG format, ##args)
+
 #define MAX_PORTS	8
 static unsigned short ports[MAX_PORTS];
 static int ports_c;
ip_nat_sip.c renamed from ip_nat_sip.c.orig +5 -5
@@ -23,11 +23,11 @@
 MODULE_AUTHOR("Christian Hentschel <[email protected]>");
 MODULE_DESCRIPTION("SIP NAT helper");
 
-#if 0
-#define DEBUGP printk
-#else
-#define DEBUGP(format, args...)
-#endif
+static unsigned int debug = 0;
+module_param(debug, uint, 0);
+MODULE_PARM_DESC(debug, "debug=1 is turn on debug messages");
+
+#define DEBUGP(format, args...) if (debug) printk(KERN_DEBUG format, ##args...)
 
 struct addr_map {
 	struct {
nf_nat_sip.c renamed from nf_nat_sip.c.orig +5 -5
@@ -25,11 +25,11 @@
 MODULE_DESCRIPTION("SIP NAT helper");
 MODULE_ALIAS("ip_nat_sip");
 
-#if 0
-#define DEBUGP printk
-#else
-#define DEBUGP(format, args...)
-#endif
+static unsigned int debug = 0;
+module_param(debug, uint, 0);
+MODULE_PARM_DESC(debug, "debug=1 is turn on debug messages");
+
+#define DEBUGP(format, args...) if (debug) printk(KERN_DEBUG format, ##args...)
 
 struct addr_map {
 	struct {
#3 lore raw

Philip,

Quoted 2 lines · On Wednesday, 13. February 2008 09:33:24 you wrote:

Ok. I had a simple patch I'd like to see included that makes debugging output dependent on a load-time module parameter, i.e. "debug=1".

Oh, you got a patch, then netfilter-devel is the right place to go. Just resend it to netfilter-devel. The source file of ip_conntrack_sip.c got a MODULE_AUTHOR line, you could try CC: him, too:

MODULE_AUTHOR("Christian Hentschel <[email protected]>");

Regards,
Thomas