summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-12-04 17:19:12 -0500
committerDave Barach <dave@barachs.net>2020-02-12 09:42:05 -0500
commit7c5a3536ce4c2fd4157c466367c495cefecaa52e (patch)
treefe6e70be8b1d2e0a594b0268d7a51962155b65a5 /extras
parentd28bac409409ea821cd9ce2ec4f84a7786cbcb73 (diff)
classify: vpp packet tracer support
Configure n-tuple classifier filters which apply to the vpp packet tracer. Update the documentation to reflect the new feature. Add a test vector. Type: feature Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Iefa911716c670fc12e4825b937b62044433fec36 (cherry picked from commit 87d24db65facb89ca524c951b8379ca2ec4dbc7a)
Diffstat (limited to 'extras')
-rw-r--r--extras/pcapcli/setup.tracefilter20
1 files changed, 20 insertions, 0 deletions
diff --git a/extras/pcapcli/setup.tracefilter b/extras/pcapcli/setup.tracefilter
new file mode 100644
index 00000000000..e6c86298c84
--- /dev/null
+++ b/extras/pcapcli/setup.tracefilter
@@ -0,0 +1,20 @@
+set term pag off
+loop create
+
+set int ip address loop0 192.168.1.1/24
+set int state loop0 up
+
+packet-generator new {
+ name pg0
+ limit 100
+ size 300-300
+ interface loop0
+ node ethernet-input
+ data { IP4: 1.2.3 -> 4.5.6
+ UDP: 192.168.1.10 - 192.168.1.20 -> 192.168.2.10
+ UDP: 1234 -> 2345
+ incrementing 286
+ }
+}
+
+classify filter trace mask l3 ip4 src match l3 ip4 src 192.168.1.15