LISP: fix IID in decap
[vpp.git] / src / vnet / lisp-gpe / interface.c
index 292c7e6..4760f44 100644 (file)
@@ -185,7 +185,8 @@ format_lisp_gpe_header_with_length (u8 * s, va_list * args)
 
   s = format (s, "\n  ver_res %d res %d next_protocol %d iid %d(%x)",
              h->ver_res, h->res, h->next_protocol,
-             clib_net_to_host_u32 (h->iid), clib_net_to_host_u32 (h->iid));
+             clib_net_to_host_u32 (h->iid << 8),
+             clib_net_to_host_u32 (h->iid << 8));
   return s;
 }
 
@@ -849,7 +850,7 @@ lisp_gpe_add_del_iface_command_fn (vlib_main_t * vm, unformat_input_t * input,
        {
          lisp_gpe_del_nsh_iface (&lisp_gpe_main);
        }
-      return (NULL);
+      goto done;
     }
 
   if (vrf_is_set && bd_index_is_set)