misc: fix icmp
[vpp.git] / src / vnet / ip / icmp6.c
index 4cabc0e..184fce6 100644 (file)
@@ -366,7 +366,6 @@ ip6_icmp_error (vlib_main_t * vm,
                               -(sizeof (ip6_header_t) +
                                 sizeof (icmp46_header_t) + 4));
 
-         vnet_buffer (p0)->sw_if_index[VLIB_TX] = ~0;
          p0->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
          p0->current_length =
            p0->current_length > 1280 ? 1280 : p0->current_length;
@@ -644,7 +643,7 @@ icmp6_init (vlib_main_t * vm)
   vlib_thread_main_t *tm = &vlib_thread_main;
   u32 n_vlib_mains = tm->n_vlib_mains;
 
-  throttle_init (&icmp_throttle, n_vlib_mains, 1e-3);
+  throttle_init (&icmp_throttle, n_vlib_mains, THROTTLE_BITS, 1e-3);
 
   return (NULL);
 }