diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-02-01 19:01:40 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-02-02 16:54:48 +0100 |
commit | 4d0b09dd07543fbceba9921f1219e310fd53d8ef (patch) | |
tree | eb89915df9ad619cf29c9c27619dacd22260c890 /epoll2.h | |
parent | a4e17af38e2e2545c32292b7b46102d49e738e1e (diff) |
trafgen: parser: Add syntax for VLAN header creating
Add 'vlan()' function to generate VLAN header.
Fields supported:
tpid|proto Set TPID (Tag Protocol Identifier) (default 0x8100)
1ad Set TPID field as 0x88a8
1q Set TPID field as 0x8100
tci Set TCI (Tag Control Information) (default 0)
pcp Set PCP (Priority Code Point) (PCP) (default 0)
dei|cfi Set DEI (Drop Eligible Indicator) (default 0)
id Set VID (VLAN Identifier) (default 0)
Examples:
{ eth(), vlan(id=1), ipv4() }
{ vlan(id=1, 1ad), vlan(id=100, pcp=3), ipv4() }
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'epoll2.h')
0 files changed, 0 insertions, 0 deletions