From 896b7ae69c33721d70837202257d3674d22fe465 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Fri, 30 Nov 2018 17:36:15 +0100 Subject: 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 --- accel-pppd/ipv6/dhcpv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/ipv6') 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); -- cgit v1.2.3