diff options
author | Neale Ranns <neale@graphiant.com> | 2021-01-14 10:04:44 +0000 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-01-21 11:00:14 +0000 |
commit | 1523c96deb2bc2f03e7823be4545342309da18fc (patch) | |
tree | e6e3f0fc5da11ff81aa08653fed6be33f99b5408 /src/plugins/lisp/lisp-cp/control.c | |
parent | f2984bbb013acb0d6872e8fbb2f9d57d3e4f49b9 (diff) |
ip: Use correct enum type in ip_address_set
Type: refactor
Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: Ice2bc42838e6d5ba579f449c3f8b0feffebeb719
Diffstat (limited to 'src/plugins/lisp/lisp-cp/control.c')
-rw-r--r-- | src/plugins/lisp/lisp-cp/control.c | 7 |
1 files changed, 4 insertions, 3 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); |