]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: fix interface wildcard matching
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 11 Oct 2013 09:42:36 +0000 (11:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:52 +0000 (23:50 +0100)
commit28dcf16384b223f9890567bd89056864a7e3c85d
tree08d23bb2a19cfbc25070869ac3bb7dfc2b846838
parent6cd426bc7593ecf04a02c901d94e04093bdf69e4
nft: fix interface wildcard matching

In (73ea1cc nft: convert rule into a command state structure), the
interface wildcard matching got broken. The previous handling was
flawed by the use of ifnametoindex in scenario where the interface
may vanished after a rule was added.

This approach relies on the trailing '\0' to identify if this is
an exact or wildcard matching, based on discussion with Florian.

Based on initial patch from Anand Raj Manickam.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft-shared.c