]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ctnetlink: use expect instead of master tuple in get operation
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 14 Dec 2011 11:45:22 +0000 (12:45 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 18 Dec 2011 00:31:47 +0000 (01:31 +0100)
commitb2253ed1553f5de45fe17170c85f0223723d72c7
treef6274fda0bb5e8dd592f4a61cf67db1794589156
parent0e5ca62e422b8aeb3ea08cc04fd30172aae8f056
netfilter: ctnetlink: use expect instead of master tuple in get operation

Use the expect tuple (if possible) instead of the master tuple for
the get operation. If two or more expectations come from the same
master, the returned expectation may not be the one that user-space
is requesting.

This is how it works for the expect deletion operation.

Although I think that nobody has been seriously using this. We
accept both possibilities, using the expect tuple if possible.
I decided to do it like this to avoid breaking backward
compatibility.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c