diff options
| author | David Stevens <dlstevens@us.ibm.com> | 2007-04-09 18:36:39 -0500 |
|---|---|---|
| committer | Jeffrey C. Ollie <jeff@ocjtech.us> | 2007-04-09 18:36:39 -0500 |
| commit | 2a77721a1fe3e256a11d0d8c6a152cb114ba6baf (patch) | |
| tree | efb6d8311d76b82fc1f52661daca94bf5dbc7aea /zebra/zserv.c | |
| parent | c15deb1b7428a2baedfb615b1a41fe28d48c598c (diff) | |
| download | quagga-zrm.patch.tar.bz2 quagga-zrm.patch.tar.xz | |
route-map, prefix list, and source setting support for zebrazrm.patch
The following patch:
1) adds "route-map" support to zebra
2) fixes "show route-map" (with no name arg)
3) adds "prefix-list" support zebra
4) adds a "set src" route-map command to allow specifying
a source address for matched routes
5) adds "ip protocol" command to zebra to execute route-maps
by protocol (or "any")
6) supports "interface", "nexthop" and "ip address" matching for
zebra route-map's
Diffstat (limited to 'zebra/zserv.c')
| -rw-r--r-- | zebra/zserv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c index 1703d3f5..22a6bed2 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -781,7 +781,7 @@ zread_ipv4_add (struct zserv *client, u_short length) break; case ZEBRA_NEXTHOP_IPV4: nexthop.s_addr = stream_get_ipv4 (s); - nexthop_ipv4_add (rib, &nexthop); + nexthop_ipv4_add (rib, &nexthop, NULL); break; case ZEBRA_NEXTHOP_IPV6: stream_forward_getp (s, IPV6_MAX_BYTELEN); @@ -1733,4 +1733,7 @@ zebra_init (void) install_element (CONFIG_NODE, &ipv6_forwarding_cmd); install_element (CONFIG_NODE, &no_ipv6_forwarding_cmd); #endif /* HAVE_IPV6 */ + + /* Route-map */ + zebra_route_map_init (); } |
