summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2020-04-20 09:46:50 +0300
committerVladislav Grishenko <themiron@mail.ru>2020-04-21 15:16:45 +0500
commite5c2be0ad9d725beaa2f34d1d3ffb66b4abafeac (patch)
tree34fc163b91c34915652b3bc8811898ec1a37be00 /accel-pppd
parent7f95043c0c10c13d2ed29914025c6e8f6e77ae53 (diff)
downloadaccel-ppp-e5c2be0ad9d725beaa2f34d1d3ffb66b4abafeac.tar.gz
accel-ppp-e5c2be0ad9d725beaa2f34d1d3ffb66b4abafeac.zip
Send Delegated-IPv6-Prefix attribute in Accounting-Start message
If Delegated-IPv6-Prefix was received in Access-Accept message, it is necessary to send it in radacct Start message
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/radius/req.c7
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;
}