acl-plugin: move to per-frame buffer pointer calculations and enqueue to next nodes
[vpp.git] / src / vnet / srp / node.c
index 897be25..acb770e 100644 (file)
@@ -41,6 +41,8 @@
 #include <vnet/ip/ip_packet.h> /* for ip_csum_fold */
 #include <vnet/srp/srp.h>
 
+srp_main_t srp_main;
+
 typedef struct {
   u8 packet_data[32];
 } srp_input_trace_t;
@@ -332,7 +334,7 @@ srp_topology_packet (vlib_main_t * vm, u32 sw_if_index, u8 ** contents)
     u32 bi;
 
     bi = vlib_buffer_add_data (vm, VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX,
-                              /* buffer to append to */ 0,
+                              /* buffer to append to */ ~0,
                               *contents, vec_len (*contents));
     b = vlib_get_buffer (vm, bi);
     vnet_buffer (b)->sw_if_index[VLIB_RX] = vnet_buffer (b)->sw_if_index[VLIB_TX] = sw_if_index;
@@ -619,7 +621,7 @@ static void tx_ips_packet (srp_interface_t * si,
                                              sizeof (i[0]) - STRUCT_OFFSET_OF (srp_ips_header_t, control)));
 
   bi = vlib_buffer_add_data (vm, VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX,
-                            /* buffer to append to */ 0,
+                            /* buffer to append to */ ~0,
                             i, sizeof (i[0]));
 
   /* FIXME trace. */