]> err.no Git - linux-2.6/blobdiff - net/netfilter/xt_tcpudp.c
[POWERPC] 83xx: Add default config file for Wind River SBC8349 board
[linux-2.6] / net / netfilter / xt_tcpudp.c
index 0dd3022cc79afb88ba3278c884bdf7950d85660d..223f9bded672dcfc3e3ea01e130b37e9fa15e53d 100644 (file)
@@ -95,7 +95,7 @@ tcp_match(const struct sk_buff *skb,
                return false;
        }
 
-#define FWINVTCP(bool,invflg) ((bool) ^ !!(tcpinfo->invflags & invflg))
+#define FWINVTCP(bool, invflg) ((bool) ^ !!(tcpinfo->invflags & (invflg)))
 
        th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
        if (th == NULL) {
@@ -188,13 +188,13 @@ udp_checkentry(const char *tablename,
               void *matchinfo,
               unsigned int hook_mask)
 {
-       const struct xt_tcp *udpinfo = matchinfo;
+       const struct xt_udp *udpinfo = matchinfo;
 
        /* Must specify no unknown invflags */
        return !(udpinfo->invflags & ~XT_UDP_INV_MASK);
 }
 
-static struct xt_match xt_tcpudp_match[] = {
+static struct xt_match xt_tcpudp_match[] __read_mostly = {
        {
                .name           = "tcp",
                .family         = AF_INET,