summaryrefslogtreecommitdiffstats
path: root/src/plugins/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lisp')
-rw-r--r--src/plugins/lisp/lisp-cp/control.c7
-rw-r--r--src/plugins/lisp/lisp-cp/lisp_types.c2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/lisp/lisp-cp/control.c b/src/plugins/lisp/lisp-cp/control.c
index 446a8d7e2cb..695d6ff039b 100644
--- a/src/plugins/lisp/lisp-cp/control.c
+++ b/src/plugins/lisp/lisp-cp/control.c
@@ -106,8 +106,9 @@ ip_interface_get_first_address (ip_lookup_main_t * lm, u32 sw_if_index,
}
int
-ip_interface_get_first_ip_address (lisp_cp_main_t * lcm, u32 sw_if_index,
- u8 version, ip_address_t * result)
+ip_interface_get_first_ip_address (lisp_cp_main_t *lcm, u32 sw_if_index,
+ ip_address_family_t version,
+ ip_address_t *result)
{
ip_lookup_main_t *lm;
void *addr;
@@ -149,7 +150,7 @@ ip_fib_get_first_egress_ip_for_dst (lisp_cp_main_t * lcm, ip_address_t * dst,
u32 si;
ip_lookup_main_t *lm;
void *addr = 0;
- u8 ipver;
+ ip_address_family_t ipver;
ASSERT (result != 0);
diff --git a/src/plugins/lisp/lisp-cp/lisp_types.c b/src/plugins/lisp/lisp-cp/lisp_types.c
index 0356949b757..5e2be77a537 100644
--- a/src/plugins/lisp/lisp-cp/lisp_types.c
+++ b/src/plugins/lisp/lisp-cp/lisp_types.c
@@ -1265,7 +1265,7 @@ gid_address_parse (u8 * offset, gid_address_t * a)
}
void
-gid_address_ip_set (gid_address_t * dst, void *src, u8 version)
+gid_address_ip_set (gid_address_t *dst, void *src, ip_address_family_t version)
{
gid_address_ippref_len (dst) = ip_address_max_len (version);
ip_address_set (&gid_address_ip (dst), src, version);