* Who currently owns ip_conntrack_sip?
@ 2008-02-13 5:01 Philip Prindeville
2008-02-13 8:25 ` Thomas Jarosch
0 siblings, 1 reply; 4+ messages in thread
From: Philip Prindeville @ 2008-02-13 5:01 UTC (permalink / raw)
To: netfilter-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Who currently owns ip_conntrack_sip?
2008-02-13 5:01 Who currently owns ip_conntrack_sip? Philip Prindeville
@ 2008-02-13 8:25 ` Thomas Jarosch
2008-02-13 8:33 ` Philip Prindeville
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Jarosch @ 2008-02-13 8:25 UTC (permalink / raw)
To: netfilter-devel; +Cc: Philip Prindeville
Philip,
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Who currently owns ip_conntrack_sip?
2008-02-13 8:25 ` Thomas Jarosch
@ 2008-02-13 8:33 ` Philip Prindeville
2008-02-13 8:51 ` Thomas Jarosch
0 siblings, 1 reply; 4+ messages in thread
From: Philip Prindeville @ 2008-02-13 8:33 UTC (permalink / raw)
To: Thomas Jarosch; +Cc: netfilter
[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]
Thomas Jarosch wrote:
> Philip,
>
> 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
>
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
[-- Attachment #2: netfilter-sip.diff --]
[-- Type: text/plain, Size: 1845 bytes --]
--- ip_conntrack_sip.c.orig 2007-10-17 12:31:14.000000000 -0700
+++ ip_conntrack_sip.c 2008-02-11 10:14:33.000000000 -0800
@@ -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 <chentschel@arnet.com.ar>");
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.orig 2007-10-17 12:31:14.000000000 -0700
+++ ip_nat_sip.c 2008-02-11 10:15:30.000000000 -0800
@@ -23,11 +23,11 @@
MODULE_AUTHOR("Christian Hentschel <chentschel@arnet.com.ar>");
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.orig 2007-10-17 12:31:14.000000000 -0700
+++ nf_nat_sip.c 2008-02-11 10:16:06.000000000 -0800
@@ -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 {
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Who currently owns ip_conntrack_sip?
2008-02-13 8:33 ` Philip Prindeville
@ 2008-02-13 8:51 ` Thomas Jarosch
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Jarosch @ 2008-02-13 8:51 UTC (permalink / raw)
To: Philip Prindeville; +Cc: netfilter-devel
Philip,
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 <chentschel@arnet.com.ar>");
Regards,
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-13 9:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13 5:01 Who currently owns ip_conntrack_sip? Philip Prindeville
2008-02-13 8:25 ` Thomas Jarosch
2008-02-13 8:33 ` Philip Prindeville
2008-02-13 8:51 ` Thomas Jarosch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.