diff options
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/radius/req.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c index b9b6536f..8547653e 100644 --- a/accel-pppd/radius/req.c +++ b/accel-pppd/radius/req.c @@ -228,6 +228,13 @@ int rad_req_acct_fill(struct rad_req_t *req) return -1; } } + if (req->rpd->ses->ipv6_dp) { + list_for_each_entry(a, &req->rpd->ses->ipv6_dp->prefix_list, entry) { + if (rad_packet_add_ipv6prefix(req->pack, NULL, "Delegated-IPv6-Prefix", &a->addr, a->prefix_len)) + return -1; + } + req->rpd->ipv6_dp_sent = 1; + } return 0; } |