aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dhcp/dhcp6_pd_client_cp_api.c
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-09-30 13:06:48 +0200
committerJakub Grajciar <jgrajcia@cisco.com>2019-10-09 13:52:32 +0200
commitd5262831a3379afc77cab9a16067765585dd5175 (patch)
treef5e771058e0eb73f2f9dd3ab46ccbb2a94fd56c1 /src/plugins/dhcp/dhcp6_pd_client_cp_api.c
parentde312c2d5fd709e2562955f0a57a56ea91455d7d (diff)
dhcp: dhcp6_pd_client_cp API cleanup
Use consistent API types. Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: If6c102a53d074cba7eca6b6af9855aa4486f38cc
Diffstat (limited to 'src/plugins/dhcp/dhcp6_pd_client_cp_api.c')
-rw-r--r--src/plugins/dhcp/dhcp6_pd_client_cp_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/dhcp/dhcp6_pd_client_cp_api.c b/src/plugins/dhcp/dhcp6_pd_client_cp_api.c
index 4999fd7f623..7430028f69f 100644
--- a/src/plugins/dhcp/dhcp6_pd_client_cp_api.c
+++ b/src/plugins/dhcp/dhcp6_pd_client_cp_api.c
@@ -15,6 +15,7 @@
#include <vnet/vnet.h>
#include <vlibmemory/api.h>
+#include <vnet/ip/ip_types_api.h>
#include <dhcp/dhcp6_pd_client_dp.h>
@@ -65,8 +66,8 @@ static void
sw_if_index = ntohl (mp->sw_if_index);
- memcpy (address.as_u8, mp->address, 16);
- prefix_length = mp->prefix_length;
+ ip6_address_decode (mp->address_with_prefix.address, &address);
+ prefix_length = mp->address_with_prefix.len;
rv = dhcp6_cp_ip6_address_add_del (sw_if_index, mp->prefix_group, address,
prefix_length, mp->is_add);