limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.0.0.2 -> 2.0.0.2
ICMP echo_request
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.0.0.2 -> 2.2.2.2
ICMP echo_request
limit 1
node ip6-input
size 64-64
- no-recycle
data {
ICMP6: 2000::2 -> 2001::2
ICMP echo_request
packet-generator new {
name bvi_to_l2
limit 100
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
packet-generator new {
name l2_to_bvi
limit 50
- no-recycle
node ethernet-input
interface GigabitEthernet2/2/0
data {
packet-generator new {
name l2_to_bvi_via_flood
limit 25
- no-recycle
node ethernet-input
interface GigabitEthernet2/2/0
data {
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.2.3.4 -> 5.6.7.8
ICMP echo_request
limit 1
node ip6-input
size 64-64
- no-recycle
data {
ICMP6: ::1 -> ::2
ICMP echo_request
limit 1
node ethernet-input
size 64-64
- no-recycle
data {
IP6: 1.2.3 -> 4.5.6
ICMP: 3002::2 -> 3001::2
limit 1
node ip6-input
size 48-48
- no-recycle
data {
IP6_HOP_BY_HOP_OPTIONS: 1::2 -> 1::2
hex 0x3B00010403040506
limit 1
node ip6-input
size 48-48
- no-recycle
data {
IP6_HOP_BY_HOP_OPTIONS: 1::2 -> 1::2
hex 0x3B00C10403040506
limit 1
node ip6-input
size 48-48
- no-recycle
data {
IP6_HOP_BY_HOP_OPTIONS: 1::2 -> 1::2
hex 0x3BffC10403040506
limit 1
node ip6-input
size 64-64
- no-recycle
data {
IP6_HOP_BY_HOP_OPTIONS: 1::2 -> 1::2
hex 0x3BffC10403040506
limit 1
node ip6-input
size 56-56
- no-recycle
data {
IP6_HOP_BY_HOP_OPTIONS: 1::2 -> 1::2
length 16
limit 1
node ip6-input
size 56-56
- no-recycle
data {
IP6_HOP_BY_HOP_OPTIONS: 1::2 -> 1::2
length 16
packet-generator new {
name pre_vtr_fail
limit 10
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
packet-generator new {
name post_vtr_pass
limit 20
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
packet-generator new {
name post_vtr_fail
limit 50
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
packet-generator new {
name post_vtr_pass
limit 9111003
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
packet-generator new {
name new_input_if_index_mac_move
limit 4
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
size 98-98
packet-generator new {
name dmac_hit
limit 7
- no-recycle
node ethernet-input
interface GigabitEthernet2/2/0
size 98-98
packet-generator new {
name perf
limit 9111003
- no-recycle
node ethernet-input
interface GigabitEthernet2/2/0.1
size 98-98
packet-generator new {
name xc
limit 11
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
size 98-98
packet-generator new {
name flood
limit 1
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
name decap
limit 10
size 200-200
- no-recycle
node ethernet-input
interface GigabitEthernet2/2/0
data {
name decap_bad_sid
limit 30
size 200-200
- no-recycle
node ethernet-input
interface GigabitEthernet2/2/0
data {
name decap_bad_cookie
limit 50
size 200-200
- no-recycle
node ethernet-input
interface GigabitEthernet2/2/0
data {
packet-generator new {
name encap
limit 100
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
name decap_sublayer
limit 300
size 200-200
- no-recycle
node ethernet-input
interface GigabitEthernet2/2/0
data {
packet-generator new {
name encap_sublayer
limit 700
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.0.0.2 -> 2.2.2.2
ICMP echo_request
limit 1
node mpls-input
size 72-72
- no-recycle
data {
hex 0x0001e0ff0001f1ff4500004000000000400177ba010000020202020208007a6e000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021222324252627
}
limit 1
node mpls-input
size 68-68
- no-recycle
data {
hex 0x0001e1ff4500004000000000400177ba010000020202020208007a6e000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021222324252627
}
limit 1
node mpls-input
size 68-68
- no-recycle
data {
hex 0x0001e1ff4500004000000000400177ba010000020200000208007a6e000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021222324252627
}
limit 1
node ip4-input
size 512-512
- no-recycle
data {
ICMP: 1.0.0.2 -> 232.1.1.1
ICMP echo_request
limit 1
node mpls-ethernet-input
size 68-68
- no-recycle
data {
hex 0x0001e1ff4500004000000000400177ba010000020200000208007a6e000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021222324252627
}
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.0.0.2 -> 2.0.0.2
ICMP echo_request
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.0.0.2 -> 2.0.1.2
ICMP echo_request
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.0.0.2 -> 2.0.2.2
ICMP echo_request
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.0.0.2 -> 2.0.3.2
ICMP echo_request
limit 1000000
node ip4-input
size 64-64
- no-recycle
interface pg0
data {
UDP: 10.0.0.3 -> 172.16.1.2
limit 1000000
node ip4-input
size 64-64
- no-recycle
interface pg0
data {
UDP: 10.0.0.3 -> 172.16.1.2
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 0
interface pg0
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 1
interface pg0
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 0
interface pg1
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 1
interface pg1
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 2
interface pg0
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 1
interface pg1
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 0
interface pg1
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 1
interface pg1
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 0
interface pg0
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 1
interface pg1
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 0
interface pg0
data {
limit 1000000
node ip4-input
size 64-64
- no-recycle
worker 1
interface pg1
data {
limit 10
node ip6-input
size 64-64
- no-recycle
worker 0
interface pg0
data {
limit 10
node ip6-input
size 64-64
- no-recycle
interface pg0
worker 1
data {
limit 10
node ip4-input
size 64-64
- no-recycle
worker 0
interface pg1
data {
limit 10
node ip4-input
size 64-64
- no-recycle
interface pg1
worker 1
data {
name x
limit 1
node ethernet-input
- no-recycle
pcap /home/eliot/pcap-data/ISIS_level1_adjacency.cap
}
name y
limit 1
node hdlc-input
- no-recycle
pcap /home/eliot/pcap-data/ISIS_p2p_adjacency.cap
}
packet-generator new {
name toport
limit 2
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
packet-generator new {
name tovlan
limit 2
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
packet-generator new {
name toqinq
limit 2
- no-recycle
node ethernet-input
interface GigabitEthernet2/1/0
data {
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.2.3.4 -> 5.6.7.8
ICMP echo_request
limit 1
node ip4-input
size 64-64
- no-recycle
data {
UDP: 1.2.3.4 -> 5.6.7.8
UDP: 3000 -> 3001
limit 1
node ip4-input
size 64-64
- no-recycle
data {
UDP: 1.1.1.1 -> 5.6.7.8
UDP: 3000 -> 3001
limit 1
node ip4-input
size 64-64
- no-recycle
data {
UDP: 1.1.1.1 -> 5.6.7.8
UDP: 6000 -> 6001
limit 1
node ip4-input
size 64-64
- no-recycle
data {
ICMP: 1.0.0.2 -> 2.0.0.2
ICMP echo_request
node ip4-input
size 100-100
interface loop0
- no-recycle
data {
TCP: 192.168.1.2 -> 192.168.1.1
TCP: 32415 -> 80
node ip4-input
size 100-100
interface loop0
- no-recycle
data {
UDP: 192.168.1.2 - 192.168.2.255 -> 192.168.1.1
UDP: 4321 -> 1234
node ip4-input
size 100-100
interface loop0
- no-recycle
data {
UDP: 192.168.1.2 - 192.168.2.255 -> 192.168.1.1
UDP: 4321 -> 1234
limit 1
node ip4-input
size 64-64
- no-recycle
data {
UDP: 1.2.3.4 -> 2.2.2.2
UDP: 3000 -> 3001
limit 1
node ip4-input
size 64-64
- no-recycle
data {
UDP: 1.1.1.1 -> 2.2.2.2
UDP: 3000 -> 3001
limit 1
node ip4-input
size 64-64
- no-recycle
data {
UDP: 11.11.12.13 -> 2.2.2.2
UDP: 6000 -> 6001
limit 1
node ip4-input
size 64-64
- no-recycle
data {
UDP: 11.11.12.13 -> 10.10.10.10
UDP: 6000 -> 6001
limit 1
node ip4-input
size 64-64
- no-recycle
data {
UDP: 1.1.1.1 -> 10.10.10.10
UDP: 3000 -> 3001
node ethernet-input
interface fake-eth0
size 64-64
- no-recycle
data {
IP4: 1.2.3 -> 4.5.6 vlan 1
ICMP: 1.2.3.4 -> 5.6.7.8
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);
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'",
/* Stream is currently enabled. */
#define PG_STREAM_FLAGS_IS_ENABLED (1 << 0)
-#define PG_STREAM_FLAGS_DISABLE_BUFFER_RECYCLE (1 << 1)
/* Edit groups are created by each protocol level (e.g. ethernet,
ip4, tcp, ...). */