aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/fib6_notifier.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2017-08-03 13:28:17 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-03 15:36:00 -0700
commitdf77fe4d9865c6354372876632bcbceeda84f6c8 (patch)
tree8a4f9eeb5ac38c657d291e99a698eb7876a94c26 /net/ipv6/fib6_notifier.c
parentipv6: fib: Add FIB notifiers callbacks (diff)
downloadlinux-dev-df77fe4d9865c6354372876632bcbceeda84f6c8.tar.xz
linux-dev-df77fe4d9865c6354372876632bcbceeda84f6c8.zip
ipv6: fib: Add in-kernel notifications for route add / delete
As with IPv4, allow listeners of the FIB notification chain to receive notifications whenever a route is added, replaced or deleted. This is done by placing calls to the FIB notification chain in the two lowest level functions that end up performing these operations - namely, fib6_add_rt2node() and fib6_del_route(). Unlike IPv4, APPEND notifications aren't sent as the kernel doesn't distinguish between "append" (NLM_F_CREATE|NLM_F_APPEND) and "prepend" (NLM_F_CREATE). If NLM_F_EXCL isn't set, duplicate routes are always added after the existing duplicate routes. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/fib6_notifier.c')
0 files changed, 0 insertions, 0 deletions