trafgen: l2: Add VLAN header generation
commita4e17af38e2e2545c32292b7b46102d49e738e1e
authorVadim Kochan <vadim4j@gmail.com>
Mon, 1 Feb 2016 17:01:39 +0000 (1 19:01 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 2 Feb 2016 15:54:48 +0000 (2 16:54 +0100)
tree454c138b7d28c0d97c6e551fe479b70f112f408f
parent287e1d8899e2649395022b57230c1a93c125cc2c
trafgen: l2: Add VLAN header generation

Add generation of VLAN header with supported fields:

    TPID, DEI/CFI, PCP, VID

Changed struct proto_field.offset uint16_t -> int16_t to make
TPID offset -2 to point to ether type.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
trafgen_l2.c
trafgen_l2.h
trafgen_proto.h