summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-26 20:06:32 +0100
committerGitHub <noreply@github.com>2021-01-26 20:06:32 +0100
commitcec848e4a668ed51868d5fa50504a2f8bb1b4eb7 (patch)
treea4aa5fae517c2a7cf2b8e2c28ce6c0afcb1d7b6c /op-mode-definitions
parent04bdf9ffc792d516975ff955514eb51fab67e7be (diff)
parent7c576e66e1972c57e564b5ddf264ef09e60e1b02 (diff)
downloadvyos-1x-cec848e4a668ed51868d5fa50504a2f8bb1b4eb7.tar.gz
vyos-1x-cec848e4a668ed51868d5fa50504a2f8bb1b4eb7.zip
Merge pull request #699 from jack9603301/T3257
monitor: traffic: op-mode: T3257: tcpdump supporting complete protocol
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/traffic-dump.xml.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/op-mode-definitions/traffic-dump.xml.in b/op-mode-definitions/traffic-dump.xml.in
index 6d86f7423..cd0d459ca 100644
--- a/op-mode-definitions/traffic-dump.xml.in
+++ b/op-mode-definitions/traffic-dump.xml.in
@@ -16,6 +16,34 @@
</completionHelp>
</properties>
<children>
+ <tagNode name="verbose">
+ <command>sudo tcpdump -vvv -ne -i $4</command>
+ <properties>
+ <help>Provide more detailed packets for each monitored traffic</help>
+ </properties>
+ <children>
+ <tagNode name="filter">
+ <command>sudo tcpdump -vvv -ne -i $4 "${@:6}"</command>
+ <properties>
+ <help>Monitor traffic matching filter conditions</help>
+ </properties>
+ </tagNode>
+ <tagNode name="save">
+ <command>sudo tcpdump -vvv -ne -i $4 -w $6</command>
+ <properties>
+ <help>Save traffic dump from an interface to a file</help>
+ </properties>
+ <children>
+ <tagNode name="filter">
+ <command>sudo tcpdump -vvv -ne -i $4 -w $6 "${@:8}"</command>
+ <properties>
+ <help>Save a dump of traffic matching filter conditions to a file</help>
+ </properties>
+ </tagNode>
+ </children>
+ </tagNode>
+ </children>
+ </tagNode>
<tagNode name="filter">
<command>sudo tcpdump -n -i $4 "${@:6}"</command>
<properties>