diff options
author | Dave Barach <dave@barachs.net> | 2020-07-17 17:16:34 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-07-19 13:06:06 +0000 |
commit | 38ca6e62d725ab81d304fb1af4ec8aae2fd78ba6 (patch) | |
tree | 9a05b8ba3d19b167e4cf613c9911eb5abcf55a2c /src/plugins/tracedump/setup.pg | |
parent | 2e64b5a934a6e014c161e6f73aa461db1e4c7449 (diff) |
api: call api reaper callbacks for socket clients
Add a callback to clear the per-client packet trace buffer cache.
Save the packet trace dump pg setup script.
Type: improvement
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I252be911b5f937ece0da5dca152263ece3d52963
Diffstat (limited to 'src/plugins/tracedump/setup.pg')
-rw-r--r-- | src/plugins/tracedump/setup.pg | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/plugins/tracedump/setup.pg b/src/plugins/tracedump/setup.pg new file mode 100644 index 00000000000..91d5ebe2d2a --- /dev/null +++ b/src/plugins/tracedump/setup.pg @@ -0,0 +1,34 @@ +set term pag off + +packet-generator new { + name worker0 + worker 0 + limit 12 + rate 1.2e7 + size 128-128 + interface local0 + node ethernet-input + data { IP4: 1.2.40 -> 3cfd.fed0.b6c8 + UDP: 192.168.40.1 - 192.168.40.100 -> 192.168.50.10 + UDP: 1234 -> 2345 + incrementing 114 + } +} + +packet-generator new { + name worker1 + worker 1 + limit 12 + rate 1.2e7 + size 128-128 + interface local0 + node ethernet-input + data { IP4: 1.2.4 -> 3cfd.fed0.b6c9 + UDP: 192.168.41.1 - 192.168.41.100 -> 192.168.51.10 + UDP: 1234 -> 2345 + incrementing 114 + } +} + +trace add pg-input 20 +pa en |