[NETFILTER]: ctnetlink: make sure event order is correct
authorPablo Neira Ayuso <pablo@eurodev.net>
Wed, 10 Aug 2005 03:05:52 +0000 (20:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 22:40:13 +0000 (15:40 -0700)
commit14a50bbaa51202b676a95e9b41bc5ed6c77aa9cc
tree1f480a6f147ace8c4fbaad5e94bca88152bba30d
parent1444fc559b01aa5d4fedf4ee4f306a9e9cd56f95
[NETFILTER]: ctnetlink: make sure event order is correct

The following sequence is displayed during events dumping of an ICMP
connection: [NEW] [DESTROY] [UPDATE]

This happens because the event IPCT_DESTROY is delivered in
death_by_timeout(), that is called from the icmp protocol helper
(ct->timeout.function) once we see the reply.

To fix this, we move this event to destroy_conntrack().

Signed-off-by: Pablo Neira Ayuso <pablo@eurodev.net>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_core.c