This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / net / ipv4 / netfilter / ipt_tcpmss.c
index 4dc9b16..5cda547 100644 (file)
@@ -87,6 +87,18 @@ match(const struct sk_buff *skb,
                               info->invert, hotdrop);
 }
 
+static inline int find_syn_match(const struct ipt_entry_match *m)
+{
+       const struct ipt_tcp *tcpinfo = (const struct ipt_tcp *)m->data;
+
+       if (strcmp(m->u.kernel.match->name, "tcp") == 0
+           && (tcpinfo->flg_cmp & TH_SYN)
+           && !(tcpinfo->invflags & IPT_TCP_INV_FLAGS))
+               return 1;
+
+       return 0;
+}
+
 static int
 checkentry(const char *tablename,
            const struct ipt_ip *ip,