[NETFILTER]: ctnetlink: remove impossible events tests for updates
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Aug 2006 07:32:23 +0000 (00:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:55:27 +0000 (14:55 -0700)
IPCT_HELPER and IPCT_NATINFO bits are never set on updates.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_netlink.c
net/netfilter/nf_conntrack_netlink.c

index ef84f43f07347de726256e1413527f962c74963f..a20b0e385f1b98d1b6b10ab83ac61e2b01048666 100644 (file)
@@ -329,11 +329,7 @@ static int ctnetlink_conntrack_event(struct notifier_block *this,
                /* dump everything */
                events = ~0UL;
                group = NFNLGRP_CONNTRACK_NEW;
-       } else if (events & (IPCT_STATUS |
-                     IPCT_PROTOINFO |
-                     IPCT_HELPER |
-                     IPCT_HELPINFO |
-                     IPCT_NATINFO)) {
+       } else if (events & (IPCT_STATUS | IPCT_PROTOINFO)) {
                type = IPCTNL_MSG_CT_NEW;
                group = NFNLGRP_CONNTRACK_UPDATE;
        } else 
index dc4f081dca914106df589b8878377c015615802e..8cd85cfd9a02c3e86271fb8569f811c325777b82 100644 (file)
@@ -339,11 +339,7 @@ static int ctnetlink_conntrack_event(struct notifier_block *this,
                /* dump everything */
                events = ~0UL;
                group = NFNLGRP_CONNTRACK_NEW;
-       } else  if (events & (IPCT_STATUS |
-                     IPCT_PROTOINFO |
-                     IPCT_HELPER |
-                     IPCT_HELPINFO |
-                     IPCT_NATINFO)) {
+       } else  if (events & (IPCT_STATUS | IPCT_PROTOINFO)) {
                type = IPCTNL_MSG_CT_NEW;
                group = NFNLGRP_CONNTRACK_UPDATE;
        } else