]> git.puffer.fish Git - mirror/frr.git/commit
zebra-set-src-routemap.patch
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 00:47:24 +0000 (17:47 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 00:47:24 +0000 (17:47 -0700)
commitc52ef59fedc4ce81afc842990980c8384d6dfce3
tree116d33d4320e53fc8d96ee5b5893fd7b98c04c8f
parentb5d58c32bb74cf2fa0aa43a07396b06765d54ac0
zebra-set-src-routemap.patch

Honor setting source via route map and pushing that to the kernel.

With recursive routes, the ability to set the source IP address of a route
via a routemap has been broken. This patch fixes that.

To allow route map to set a source and then to unapply the route map and
have the source be taken out, I've introduced a new field in the nexthop
data structure called rmap_src. This field is zero'd before invoking the
route map apply function.

Today, no protocol daemon specifies the src in its route update to zebra.
If that happens, I didn't want to stomp on it and so have left the src
field intact instead of reusing that for the routemap to play with.

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
lib/nexthop.h
zebra/rt_netlink.c
zebra/zebra_rib.c
zebra/zebra_routemap.c