https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276414
Bug ID: 276414
Summary: rtnetlink: destroying an interface generates spurious
RTM_NEWLINKs
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
tested on FreeBSD 15.0-CURRENT #8 main-n267554-c8328f1a7b6e
when an interface is destroyed, an rtnetlink socket monitoring RTNLGRP_LINK
will get 1 or more spurious RTM_NEWLINKS, followed by the actual RTM_DELLINK.
this can be observed with 'route monitor' which uses netlink:
# ifconfig bridge1 create
03:49:47.538 PID 10747 add/repl iface iface#8 bridge1 admin DOWN oper DOWN mtu
1500
# ifconfig bridge1 destroy
03:50:14.124 PID 10747 add/repl iface iface#8 bridge1 admin DOWN oper DOWN mtu
1500
03:50:14.124 PID 10747 delete iface iface#8 bridge1 admin DOWN oper DOWN mtu
1500
with wg(4) interfaces, there are several spurious RTM_NEWLINKs after destroy:
03:50:44.607 PID 10747 add/repl iface iface#8 wg1 admin DOWN oper DOWN mtu 1420
03:50:44.607 PID 0 add/repl iface iface#8 wg1 admin DOWN oper DOWN mtu 1420
03:50:44.654 PID 10747 add/repl iface iface#8 wg1 admin DOWN oper DOWN mtu 1420
03:50:44.654 PID 0 delete iface iface#8 wg1 admin DOWN oper DOWN mtu 1420
i'm not particularly familiar with the netlink API, but from reading the
documentation, this isn't the behaviour i'd expect.
--
You are receiving this mail because:
You are the assignee for the bug.