trafgen: l2: Add MPLS header generation
commit116835ed0d245f3e73173f2f2057265827416ce6
authorVadim Kochan <vadim4j@gmail.com>
Mon, 8 Feb 2016 06:01:52 +0000 (8 08:01 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 23 Feb 2016 12:19:34 +0000 (23 13:19 +0100)
tree052f654f670d8ce6ce0251124bd130c3c05622f7
parentf02fcdbd2cb4dc041783def773e446c179bd57f1
trafgen: l2: Add MPLS header generation

Add support for MPLS header creating with fields:

    Label, TClass, Bottom-Stack, TTL

By default S-field is set to 1 (last label), but resets to 0
if lower MPLS header is added.

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