RTMNEWADDRRTMDELADDR
RTM_NEWADDR and RTM_DELADDR are Netlink routing message types used by the Linux kernel to notify user-space about changes to network interface addresses. They are part of the NETLINK_ROUTE family and are emitted when an IP address is added, changed, or removed on a network interface. Applications such as network managers, DHCP clients, and tools like iproute2 listen for these messages to keep their internal view of the system’s addressing up to date.
These messages carry information about the affected interface and address data. The payload includes an ifaddrmsg
Typical use cases include adding or removing IPv4 or IPv6 addresses on interfaces via commands like ip
See also: NETLINK_ROUTE, RTM_NEWLINK, IP addressing, iproute2.