[netfilter-cvslog] r7467 - trunk/conntrack-tools/extensions
pablo at netfilter.org
pablo at netfilter.org
Sun Apr 13 04:52:41 CEST 2008
Author: pablo at netfilter.org
Date: 2008-04-13 04:52:40 +0200 (Sun, 13 Apr 2008)
New Revision: 7467
Modified:
trunk/conntrack-tools/extensions/libct_proto_tcp.c
trunk/conntrack-tools/extensions/libct_proto_udp.c
Log:
relax parameter checking for UDP and TCP
Modified: trunk/conntrack-tools/extensions/libct_proto_tcp.c
===================================================================
--- trunk/conntrack-tools/extensions/libct_proto_tcp.c 2008-04-13 02:21:39 UTC (rev 7466)
+++ trunk/conntrack-tools/extensions/libct_proto_tcp.c 2008-04-13 02:52:40 UTC (rev 7467)
@@ -200,7 +200,7 @@
unsigned int cmd,
struct nf_conntrack *ct)
{
- if ((1 << cmd) & (CT_CREATE|CT_UPDATE|CT_DELETE|CT_GET) &&
+ if ((1 << cmd) & (CT_CREATE|CT_GET) &&
!((flags & TCP_ORIG_SPORT && flags & TCP_ORIG_DPORT) ||
(flags & TCP_REPL_SPORT && flags & TCP_REPL_DPORT)))
exit_error(PARAMETER_PROBLEM, "missing ports");
Modified: trunk/conntrack-tools/extensions/libct_proto_udp.c
===================================================================
--- trunk/conntrack-tools/extensions/libct_proto_udp.c 2008-04-13 02:21:39 UTC (rev 7466)
+++ trunk/conntrack-tools/extensions/libct_proto_udp.c 2008-04-13 02:52:40 UTC (rev 7467)
@@ -165,7 +165,7 @@
unsigned int cmd,
struct nf_conntrack *ct)
{
- if ((1 << cmd) & (CT_CREATE|CT_UPDATE|CT_DELETE|CT_GET) &&
+ if ((1 << cmd) & (CT_CREATE|CT_GET) &&
!((flags & UDP_ORIG_SPORT && flags & UDP_ORIG_DPORT) ||
(flags & UDP_REPL_SPORT && flags & UDP_REPL_DPORT)))
exit_error(PARAMETER_PROBLEM, "missing ports");
More information about the netfilter-cvslog
mailing list