diff options
author | Mathieu Goessens <gebura@poolp.org> | 2009-06-23 15:59:45 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-23 15:59:45 +0100 |
commit | d13c3b4fcf802f904ef47ad82fdc9763fc704fdf (patch) | |
tree | b95426a542d8b931b731d8138b296c22ec9ac05e /zebra/rt_netlink.c | |
parent | ba803bd51cdf3decfc740b3d7287fe51228f78fb (diff) |
[zebra] linux policy routing support with ipv6
Quagga support linux policy routing (ip route ... table $X) with zebra.conf
table $X option. It works fine on ipv4. On ipv6 the parameter is ignored
(table 0 is used).
* zebra/...: Pass appropriate table arg to rib_{add,delete}_ipv6
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r-- | zebra/rt_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 03df28c1..7652f80a 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -889,9 +889,9 @@ netlink_route_change (struct sockaddr_nl *snl, struct nlmsghdr *h) } if (h->nlmsg_type == RTM_NEWROUTE) - rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, 0, &p, gate, index, 0, 0, 0); + rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, 0, &p, gate, index, table, 0, 0); else - rib_delete_ipv6 (ZEBRA_ROUTE_KERNEL, 0, &p, gate, index, 0); + rib_delete_ipv6 (ZEBRA_ROUTE_KERNEL, 0, &p, gate, index, table); } #endif /* HAVE_IPV6 */ |