]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt_socket.c
Zebra: Implement route replace for IPv6
authorvivek <vivek@cumulusnetworks.com>
Thu, 19 Nov 2015 20:22:55 +0000 (12:22 -0800)
committervivek <vivek@cumulusnetworks.com>
Thu, 19 Nov 2015 20:22:55 +0000 (12:22 -0800)
commitdccc522572a41a2121f006f1fd9fa7c16493197d
tree2dc458e50d9588ca5034664e6a23467b1faa2f86
parent9c2bf1cf3997e635df124b42bdd671a99c50bdc4
Zebra: Implement route replace for IPv6

Zebra currently performs a delete followed by add when a route needs to be
modified. Change this to use the replace semantics of netlink so that the
operation can possibly be atomic.

Note: This patch handles IPv6 routes, IPv4 already performs a replace.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
Ticket: CM-5597
Reviewed By: CCR-3407
Testing Done: Manual testing of various scearnios (Vivek, Satish)

Note: This is an import of patch zebra-ipv6-route-replace.patch from 2.5-br.
zebra/kernel_null.c
zebra/rt.h
zebra/rt_ioctl.c
zebra/rt_netlink.c
zebra/rt_socket.c
zebra/zebra_rib.c