summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/lisp-cp/lisp_types.c4
-rw-r--r--vnet/vnet/lisp-gpe/lisp_gpe.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/vnet/vnet/lisp-cp/lisp_types.c b/vnet/vnet/lisp-cp/lisp_types.c
index c9f4405901b..b38871c28d4 100644
--- a/vnet/vnet/lisp-cp/lisp_types.c
+++ b/vnet/vnet/lisp-cp/lisp_types.c
@@ -563,7 +563,7 @@ lcaf_write (u8 * p, void * a)
size += sizeof (h[0]);
len = (*lcaf_write_fcts[type])(p + size, lcaf);
- if (~0 == len)
+ if ((u16)~0 == len)
return ~0;
return size + len;
@@ -579,7 +579,7 @@ vni_write (u8 * p, void * a)
size += sizeof (u32);
len = gid_address_put (p + size, vni_gid (v));
- if (~0 == len)
+ if ((u16)~0 == len)
return ~0;
return size + len;
diff --git a/vnet/vnet/lisp-gpe/lisp_gpe.c b/vnet/vnet/lisp-gpe/lisp_gpe.c
index b7906cdb199..c09b322b090 100644
--- a/vnet/vnet/lisp-gpe/lisp_gpe.c
+++ b/vnet/vnet/lisp-gpe/lisp_gpe.c
@@ -198,8 +198,8 @@ add_del_negative_fwd_entry (lisp_gpe_main_t * lgm,
/* TODO insert tunnel that always sends map-request */
case DROP:
/* for drop fwd entries, just add route, no need to add encap tunnel */
- adj.lookup_next_index = ip_prefix_version(dpref) == IP4 ?
- LGPE_IP4_LOOKUP_NEXT_DROP : LGPE_IP6_LOOKUP_NEXT_DROP;
+ adj.lookup_next_index = (u32) (ip_prefix_version(dpref) == IP4 ?
+ LGPE_IP4_LOOKUP_NEXT_DROP : LGPE_IP6_LOOKUP_NEXT_DROP);
/* add/delete route for prefix */
return ip_sd_fib_add_del_route (lgm, dpref, spref, a->table_id, &adj,