while (*junk_after_name && *junk_after_name != ' ')
junk_after_name++;
*junk_after_name = 0;
- s = format (s, "edit-funtion %s, ", function_name);
+ s = format (s, "edit-function %s, ", function_name);
vec_free (function_name);
}
s->min_packet_bytes = pm.min_packet_bytes;
s->max_packet_bytes = pm.max_packet_bytes;
s->buffer_bytes = pm.max_packet_bytes;
- /* For PCAP buffers we never re-use buffers. */
- s->flags |= PG_STREAM_FLAGS_DISABLE_BUFFER_RECYCLE;
if (s->n_packets_limit == 0)
s->n_packets_limit = vec_len (pm.packets_read);
s.sw_if_index[VLIB_RX] = s.sw_if_index[VLIB_TX] = ~0;
s.node_index = ~0;
s.max_packet_bytes = s.min_packet_bytes = 64;
- s.buffer_bytes = VLIB_BUFFER_DATA_SIZE;
+ s.buffer_bytes = vlib_buffer_get_default_data_size (vm);
s.if_id = 0;
pcap_file_name = 0;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
else if (unformat_user (input, unformat_pg_stream_parameter, &s))
;
- else if (unformat (input, "no-recycle"))
- s.flags |= PG_STREAM_FLAGS_DISABLE_BUFFER_RECYCLE;
-
else
{
error = clib_error_create ("unknown input `%U'",