summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-02-01 19:01:41 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-02-02 16:54:48 +0100
commit686338ed02f66341daf508b2255f3dc1d5315f6d (patch)
treed3ce29f2e692e7c4e55df2c81899af1dc0152364
parent4d0b09dd07543fbceba9921f1219e310fd53d8ef (diff)
trafgen: man: Add help for VLAN header function
Add usage, syntax & parameters description for 'vlan()' function. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--trafgen.829
1 files changed, 29 insertions, 0 deletions
diff --git a/trafgen.8 b/trafgen.8
index 207cfc5..4a91d1f 100644
--- a/trafgen.8
+++ b/trafgen.8
@@ -307,6 +307,35 @@ Supported protocol headers:
- Ethernet type (default: 0)
.in -4
+.I VLAN
+:
+.B vlan(tpid=<number>, id=<number>, dei=<number>, tci=<number>, pcp=<number>, 1q, 1ad)
+.sp
+.in +4
+.B tpid|prot|proto
+- Tag Protocol Identifier (TPID) (default: 0x8100)
+.sp
+.B tci
+- Tag Control Information (TCI) field (VLAN Id + PCP + DEI) (default: 0)
+.sp
+.B dei|cfi
+- Drop Eligible Indicator (DEI), formerly Canonical Format Indicator (CFI) (default: 0)
+.sp
+.B pcp
+- Priority code point (PCP) (default: 0)
+.sp
+.B id
+- VLAN Identifier (default: 0)
+.sp
+.B 1q
+- Set 802.1q header (TPID: 0x8100)
+.sp
+.B 1ad
+- Set 802.1ad header (TPID: 0x88a8)
+.sp
+.in -4
+By default, if the lower level header is Ethernet, its Ethertype is set to
+0x8100 (802.1q).
.I ARP
:
.B arp(htype=<number>, ptype=<number>, op=<request|reply|number>, request,