Add usage, syntax & parameters description for 'vlan()' function. Signed-off-by: Vadim Kochan <vadi...@gmail.com> --- trafgen.8 | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
diff --git a/trafgen.8 b/trafgen.8 index 207cfc5..1fe5536 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -307,6 +307,49 @@ Supported protocol headers: - Ethernet type (default: 0) .in -4 +.I VLAN +: +.B vlan(tpid=<number>, id=<number>, dei=<number>, tci=<number>, pcp=<number>, +.B 1q, 1ad, <number>) +.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 <number> +- Set VLAN Identifier field +.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 protocol field is set to +0x8100 (802.1q). +Example of adding VLAN tag with id 100: +.in +4 +.sp +{ vlan(100) } +.sp +{ vlan(id=100, pcp=3) } +.sp +{ vlan(100, pcp=3) } +.in -4 + .I ARP : .B arp(htype=<number>, ptype=<number>, op=<request|reply|number>, request, -- 2.6.3 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.