diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2018-11-30 17:36:15 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2018-12-04 06:26:35 +0300 |
commit | 896b7ae69c33721d70837202257d3674d22fe465 (patch) | |
tree | 54fcdf476cc0cc20e18fe68996381694bbf74190 /accel-pppd/ipv6/dhcpv6.c | |
parent | 7b9473ddbb13644e65c8c2d80ced0c3869409058 (diff) | |
download | accel-ppp-896b7ae69c33721d70837202257d3674d22fe465.tar.gz accel-ppp-896b7ae69c33721d70837202257d3674d22fe465.zip |
libnetlink: add gateway and priority parameters to ip6route_*()
Let callers set a gateway and a priority to IPv6 routes. This is
necessary for implementing the RADIUS Framed-IPv6-Route attribute.
Also let ip6route_del() configure .rtm_protocol. This is already
implemented in ip6route_add(), so we need to add the ip6route_del()
counterpart. Otherwise, we couldn't delete routes that were added using
a non-zero protocol.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ipv6/dhcpv6.c')
-rw-r--r-- | accel-pppd/ipv6/dhcpv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c index 36a5f15e..be24858c 100644 --- a/accel-pppd/ipv6/dhcpv6.c +++ b/accel-pppd/ipv6/dhcpv6.c @@ -156,7 +156,7 @@ static void ev_ses_finished(struct ap_session *ses) if (pd->dp_active) { struct ipv6db_addr_t *p; list_for_each_entry(p, &ses->ipv6_dp->prefix_list, entry) - ip6route_del(0, &p->addr, p->prefix_len); + ip6route_del(0, &p->addr, p->prefix_len, NULL, 0, 0); } ipdb_put_ipv6_prefix(ses, ses->ipv6_dp); |