]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_TEE: add missing code to get interface index in checkentry.
authorTaehee Yoo <ap420073@gmail.com>
Sat, 6 Oct 2018 15:09:32 +0000 (00:09 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Oct 2018 09:29:14 +0000 (11:29 +0200)
commitaa8524e978c34a3bbb32bb02169248eeff6c3b70
tree0363677faf0fbce8aaeb1b9b8e98749fcc24b316
parent25d4d3ae1f0836f8a7a926737e18dc5efd4f9ab4
netfilter: xt_TEE: add missing code to get interface index in checkentry.

checkentry(tee_tg_check) should initialize priv->oif from dev if possible.
But only netdevice notifier handler can set that.
Hence priv->oif is always -1 until notifier handler is called.

Fixes: b78ffc00d241 ("netfilter: Rework xt_TEE netdevice notifier")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_TEE.c