aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/payloads/configuration_attribute.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-03-10 12:00:56 +0100
committerTobias Brunner <tobias@strongswan.org>2016-03-10 12:06:46 +0100
commit709998e10634b98a0888a93b8b0586daa872e748 (patch)
treeb372ccc764216ea244c6f2a8460e0939a8db2a44 /src/libcharon/encoding/payloads/configuration_attribute.c
parentf893b47e3d854f4051b8d1549cdc0d6d661aa235 (diff)
parent7e854f4d5139204f27946f9c79b1b7486acefcd2 (diff)
downloadstrongswan-709998e10634b98a0888a93b8b0586daa872e748.tar.bz2
strongswan-709998e10634b98a0888a93b8b0586daa872e748.tar.xz
Merge branch 'p-cscf'
This adds the p-cscf plugin that can request P-CSCF server addresses from an ePDG via IKEv2 (RFC 7651). Addresses of the same families as requested virtual IPs are requested if enabled in strongswan.conf for a particular connection. The plugin currently writes received addresses to the log.
Diffstat (limited to 'src/libcharon/encoding/payloads/configuration_attribute.c')
-rw-r--r--src/libcharon/encoding/payloads/configuration_attribute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/encoding/payloads/configuration_attribute.c b/src/libcharon/encoding/payloads/configuration_attribute.c
index 0bc94708f..4ecdf569d 100644
--- a/src/libcharon/encoding/payloads/configuration_attribute.c
+++ b/src/libcharon/encoding/payloads/configuration_attribute.c
@@ -132,6 +132,7 @@ METHOD(payload_t, verify, status_t,
case INTERNAL_IP4_NBNS:
case INTERNAL_ADDRESS_EXPIRY:
case INTERNAL_IP4_DHCP:
+ case P_CSCF_IP4_ADDRESS:
if (this->length_or_value != 0 && this->length_or_value != 4)
{
failed = TRUE;
@@ -160,6 +161,7 @@ METHOD(payload_t, verify, status_t,
case INTERNAL_IP6_DNS:
case INTERNAL_IP6_NBNS:
case INTERNAL_IP6_DHCP:
+ case P_CSCF_IP6_ADDRESS:
if (this->length_or_value != 0 && this->length_or_value != 16)
{
failed = TRUE;