mirror of
https://github.com/strongswan/strongswan.git
synced 2025-11-09 00:01:52 -05:00
eap-radius: Use Framed-IPv6-Address attributes to send IPv6 VIPs in accounting messages
This attribute is more appropriate for single IPv6 virtual IPs than the Framed-IPv6-Prefix attribute. Fixes #1001.
This commit is contained in:
parent
ec490e68ae
commit
39afe6e9d0
@ -447,10 +447,8 @@ static void add_ike_sa_parameters(private_eap_radius_accounting_t *this,
|
||||
vip->get_address(vip));
|
||||
break;
|
||||
case AF_INET6:
|
||||
/* we currently assign /128 prefixes, only (reserved, length) */
|
||||
data = chunk_from_chars(0, 128);
|
||||
data = chunk_cata("cc", data, vip->get_address(vip));
|
||||
message->add(message, RAT_FRAMED_IPV6_PREFIX, data);
|
||||
message->add(message, RAT_FRAMED_IPV6_ADDRESS,
|
||||
vip->get_address(vip));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user