mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
[NETFILTER]: ctnetlink: remove impossible events tests for updates
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>
This commit is contained in:
parent
b3a27bfba5
commit
1a31526bae
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user