aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-05-21 22:44:30 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2025-05-23 13:57:13 +0200
commit7b4856493d7801018c48bab6f8ab8482aba8be76 (patch)
treef75c1559dc170e612ca4c244afc9df4bcce16818 /net/lapb/lapb_timer.c
parentnetfilter: nf_tables: Wrap netdev notifiers (diff)
downloadwireguard-linux-7b4856493d7801018c48bab6f8ab8482aba8be76.tar.xz
wireguard-linux-7b4856493d7801018c48bab6f8ab8482aba8be76.zip
netfilter: nf_tables: Handle NETDEV_CHANGENAME events
For the sake of simplicity, treat them like consecutive NETDEV_REGISTER and NETDEV_UNREGISTER events. If the new name matches a hook spec and registration fails, escalate the error and keep things as they are. To avoid unregistering the newly registered hook again during the following fake NETDEV_UNREGISTER event, leave hooks alone if their interface spec matches the new name. Note how this patch also skips for NETDEV_REGISTER if the device is already registered. This is not yet possible as the new name would have to match the old one. This will change with wildcard interface specs, though. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions