fib: fix crash while adding intf-rx routes
[vpp.git] / src / vnet / misc.c
index cd8bd78..d1dcd6e 100644 (file)
@@ -86,10 +86,8 @@ vnet_main_init (vlib_main_t * vm)
   vnm->local_interface_hw_if_index = hw_if_index;
   vnm->local_interface_sw_if_index = hw->sw_if_index;
 
-  /* the local interface is used as an input interface when decapping from
-   * an IPSEC tunnel. so it needs to be IP enabled */
-  ip4_sw_interface_enable_disable (hw->sw_if_index, 1);
-  ip6_sw_interface_enable_disable (hw->sw_if_index, 1);
+  vnm->pcap.current_filter_function =
+    vlib_is_packet_traced_default_function ();
 
   return 0;
 }