diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-06-15 13:12:01 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-06-16 00:02:35 +0300 |
commit | 835b803377f5f11f9ccf234f70ed667a82605c45 (patch) | |
tree | c37020898a8d31211877daef0fc7609bc118c878 /net/ipv4 | |
parent | d8ee8f7c56b267751f95a1f0b4a75618909c07ac (diff) | |
download | linux-835b803377f5f11f9ccf234f70ed667a82605c45.tar.xz |
netfilter: nf_tables_netdev: unregister hooks on net_device removal
In case the net_device is gone, we have to unregister the hooks and put back
the reference on the net_device object. Once it comes back, register them
again. This also covers the device rename case.
This patch also adds a new flag to indicate that the basechain is disabled, so
their hooks are not registered. This flag is used by the netdev family to
handle the case where the net_device object is gone. Currently this flag is not
exposed to userspace.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions