Skip to content
Snippets Groups Projects
Commit 5c32114d authored by Neal Cardwell's avatar Neal Cardwell
Browse files

net-test: packetdrill MPLS support: parse MPLS label stacks in scripts

Code to parse script packets using an encapsulation layer that is an
MPLS label stack.

The syntax looks like:

  mpls (label 123, tc 1, [S], ttl 255) (label 456, tc 1, [S], ttl 255)

This is borrowed from the syntax from tcpdump, which is:

  MPLS (label 123, exp 1, [S], ttl 255) (label 456, exp 1, [S], ttl 255)

We use "tc" because RFC 5462 renamed the EXP ("experimental") field to
the TC ("traffic class") field. We use lower-case "mpls" instead of
"MPLS" for consistency with other packetdrill protocols, and for ease
of typing.

Change-Id: I2e797aead8605da9fe3f0461594cf7273d4ef0ec
parent 73371412
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment