* [NETFILTER 00/02]: Netfilter fixes
@ 2007-06-22 11:47 Patrick McHardy
2007-06-22 11:47 ` [NETFILTER 01/02]: nf_conntrack_sip: add missing message types containing RTP info Patrick McHardy
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Patrick McHardy @ 2007-06-22 11:47 UTC (permalink / raw)
To: davem; +Cc: netfilter-devel, Patrick McHardy
Hi Dave,
following are two netfilter fixes for 2.6.22, adding a few new SIP message
types that are necessary to get Jerome's setup working, and a patch to
forbid changing helpers of an existing connection to avoid races while
changing the helper private area.
Please apply, thanks.
net/netfilter/nf_conntrack_netlink.c | 3 +--
net/netfilter/nf_conntrack_sip.c | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)
Jerome Borsboom (1):
[NETFILTER]: nf_conntrack_sip: add missing message types containing RTP info
Yasuyuki Kozakai (1):
[NETFILTER]: nfctnetlink: Don't allow to change helper
^ permalink raw reply [flat|nested] 4+ messages in thread
* [NETFILTER 01/02]: nf_conntrack_sip: add missing message types containing RTP info
2007-06-22 11:47 [NETFILTER 00/02]: Netfilter fixes Patrick McHardy
@ 2007-06-22 11:47 ` Patrick McHardy
2007-06-22 11:47 ` [NETFILTER 02/02]: nfctnetlink: Don't allow to change helper Patrick McHardy
2007-06-22 21:11 ` [NETFILTER 00/02]: Netfilter fixes David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2007-06-22 11:47 UTC (permalink / raw)
To: davem; +Cc: netfilter-devel, Patrick McHardy
[NETFILTER]: nf_conntrack_sip: add missing message types containing RTP info
Signed-off-by: Jerome Borsboom <j.borsboom@erasmusmc.nl>
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
commit 845abcbe6c8ef918b3499e820aafe4d26119c737
tree a07a4b377afbcfcb3cae6c93e50fc09c3006dd29
parent 188e1f81ba31af1b65a2f3611df4c670b092bbac
author Jerome Borsboom <j.borsboom@erasmusmc.nl> Mon, 18 Jun 2007 14:56:42 +0200
committer Patrick McHardy <kaber@trash.net> Mon, 18 Jun 2007 14:56:42 +0200
net/netfilter/nf_conntrack_sip.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/netfilter/nf_conntrack_sip.c b/net/netfilter/nf_conntrack_sip.c
index 7aaa8c9..1b5c6c1 100644
--- a/net/netfilter/nf_conntrack_sip.c
+++ b/net/netfilter/nf_conntrack_sip.c
@@ -442,6 +442,9 @@ static int sip_help(struct sk_buff **pskb,
/* RTP info only in some SDP pkts */
if (memcmp(dptr, "INVITE", sizeof("INVITE") - 1) != 0 &&
+ memcmp(dptr, "UPDATE", sizeof("UPDATE") - 1) != 0 &&
+ memcmp(dptr, "SIP/2.0 180", sizeof("SIP/2.0 180") - 1) != 0 &&
+ memcmp(dptr, "SIP/2.0 183", sizeof("SIP/2.0 183") - 1) != 0 &&
memcmp(dptr, "SIP/2.0 200", sizeof("SIP/2.0 200") - 1) != 0) {
goto out;
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [NETFILTER 02/02]: nfctnetlink: Don't allow to change helper
2007-06-22 11:47 [NETFILTER 00/02]: Netfilter fixes Patrick McHardy
2007-06-22 11:47 ` [NETFILTER 01/02]: nf_conntrack_sip: add missing message types containing RTP info Patrick McHardy
@ 2007-06-22 11:47 ` Patrick McHardy
2007-06-22 21:11 ` [NETFILTER 00/02]: Netfilter fixes David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2007-06-22 11:47 UTC (permalink / raw)
To: davem; +Cc: netfilter-devel, Patrick McHardy
[NETFILTER]: nfctnetlink: Don't allow to change helper
There is no realistic situation to change helper (Who wants IRC helper to
track FTP traffic ?). Moreover, if we want to do that, we need to fix race
issue by nfctnetlink and running helper. That will add overhead to packet
processing. It wouldn't pay. So this rejects the request to change
helper. The requests to add or remove helper are accepted as ever.
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
commit 4c56b708f2c447527749492fd53e85d1e1483f02
tree 6d3f9fd34752e010f5c597a5e2b1611469cb2917
parent 845abcbe6c8ef918b3499e820aafe4d26119c737
author Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> Wed, 20 Jun 2007 14:52:57 +0200
committer Patrick McHardy <kaber@trash.net> Wed, 20 Jun 2007 14:52:57 +0200
net/netfilter/nf_conntrack_netlink.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c
index 3f73327..d0fe3d7 100644
--- a/net/netfilter/nf_conntrack_netlink.c
+++ b/net/netfilter/nf_conntrack_netlink.c
@@ -869,8 +869,7 @@ ctnetlink_change_helper(struct nf_conn *ct, struct nfattr *cda[])
return 0;
if (help->helper)
- /* we had a helper before ... */
- nf_ct_remove_expectations(ct);
+ return -EBUSY;
/* need to zero data of old helper */
memset(&help->help, 0, sizeof(help->help));
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [NETFILTER 00/02]: Netfilter fixes
2007-06-22 11:47 [NETFILTER 00/02]: Netfilter fixes Patrick McHardy
2007-06-22 11:47 ` [NETFILTER 01/02]: nf_conntrack_sip: add missing message types containing RTP info Patrick McHardy
2007-06-22 11:47 ` [NETFILTER 02/02]: nfctnetlink: Don't allow to change helper Patrick McHardy
@ 2007-06-22 21:11 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2007-06-22 21:11 UTC (permalink / raw)
To: kaber; +Cc: netfilter-devel
From: Patrick McHardy <kaber@trash.net>
Date: Fri, 22 Jun 2007 13:47:30 +0200 (MEST)
> Hi Dave,
>
> following are two netfilter fixes for 2.6.22, adding a few new SIP message
> types that are necessary to get Jerome's setup working, and a patch to
> forbid changing helpers of an existing connection to avoid races while
> changing the helper private area.
>
> Please apply, thanks.
Both patches applied, thanks Patrick!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-22 21:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22 11:47 [NETFILTER 00/02]: Netfilter fixes Patrick McHardy
2007-06-22 11:47 ` [NETFILTER 01/02]: nf_conntrack_sip: add missing message types containing RTP info Patrick McHardy
2007-06-22 11:47 ` [NETFILTER 02/02]: nfctnetlink: Don't allow to change helper Patrick McHardy
2007-06-22 21:11 ` [NETFILTER 00/02]: Netfilter fixes David Miller
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.