ip: Replace Sematics for Interface IP addresses
[vpp.git] / src / vnet / ip / ip4_punt_drop.c
index 4771e8d..aee84b4 100644 (file)
@@ -187,10 +187,7 @@ VLIB_REGISTER_NODE (ip4_not_enabled_node) =
   .name = "ip4-not-enabled",
   .vector_size = sizeof (u32),
   .format_trace = format_ip4_forward_next_trace,
-  .n_next_nodes = 1,
-  .next_nodes = {
-    [0] = "error-drop",
-  },
+  .sibling_of = "ip4-drop",
 };
 
 VLIB_REGISTER_NODE (ip4_punt_node) =
@@ -338,6 +335,7 @@ ip4_punt_redirect_cmd (vlib_main_t * vm,
 {
   unformat_input_t _line_input, *line_input = &_line_input;
   fib_route_path_t *rpaths = NULL, rpath;
+  dpo_proto_t payload_proto;
   clib_error_t *error = 0;
   u32 rx_sw_if_index = ~0;
   vnet_main_t *vnm;
@@ -361,7 +359,7 @@ ip4_punt_redirect_cmd (vlib_main_t * vm,
                         unformat_vnet_sw_interface, vnm, &rx_sw_if_index))
        ;
       else if (unformat (line_input, "via %U",
-                        unformat_fib_route_path, &rpath))
+                        unformat_fib_route_path, &rpath, &payload_proto))
        vec_add1 (rpaths, rpath);
       else
        {