]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iproute2: add 'ip monitor acaddress' support
authorYuyang Huang <yuyanghuang@google.com>
Fri, 17 Jan 2025 03:20:41 +0000 (12:20 +0900)
committerDavid Ahern <dsahern@kernel.org>
Mon, 20 Jan 2025 00:20:56 +0000 (00:20 +0000)
commitfe4100df8312fc49436e247d31aba46e07c67e05
treede19d13504c4ab2f76a47afce24bce5aed8916ef
parentd009b68ffcf6e8d38ae089992281ba7b22d10eb6
iproute2: add 'ip monitor acaddress' support

Enhanced the 'ip monitor' command to track changes in IPv6
anycast addresses. This update allows the command to listen for
events related to anycast address additions and deletions by
registering to the newly introduced RTNLGRP_IPV6_ACADDR netlink group.

This patch depends on the kernel patch that adds RTNLGRP_IPV6_ACADDR
being merged first.

Here is an example usage:

root@uml-x86-64:/# ip monitor acaddress
2: if2    inet6 any 2001:db8:7b:0:528e:a53a:9224:c9c5 scope global
       valid_lft forever preferred_lft forever
Deleted 2: if2    inet6 any 2001:db8:7b:0:528e:a53a:9224:c9c5 scope global
       valid_lft forever preferred_lft forever

Cc: Maciej Żenczykowski <maze@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Yuyang Huang <yuyanghuang@google.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipaddress.c
ip/ipmonitor.c
man/man8/ip-monitor.8