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)
commit18c0ab87364ac5128a152055fdcb1d27e01caf01
tree0363677faf0fbce8aaeb1b9b8e98749fcc24b316
parentf24d2d4f9586985509320f90308723d3d0c4e47f
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: 9e2f6c5d78db ("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