Recent kernel additions to TC allows the manipulation of MPLS headers as filter actions.
The following patchset creates an iproute2 interface to the new actions and includes documentation on how to use it. John Hurley (3): lib: add mpls_uc and mpls_mc as link layer protocol names tc: add mpls actions man: update man pages for TC MPLS actions lib/ll_proto.c | 2 + man/man8/tc-mpls.8 | 156 ++++++++++++++++++++++++++++++ tc/Makefile | 1 + tc/m_mpls.c | 275 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 434 insertions(+) create mode 100644 man/man8/tc-mpls.8 create mode 100644 tc/m_mpls.c -- 2.7.4