iproute2/include/linux
Eric W. Biederman dacc5d4197 add basic mpls support to iproute
- Pull in the uapi mpls.h
- Update rtnetlink.h to include the mpls rtnetlink notification multicast group.
- Define AF_MPLS in utils.h if it is not defined from elsewhere
  as is done with AF_DECnet

The address syntax for multiple mpls labels is a complete invention.
When I looked there seemed to be no wide spread convention for talking
about an mpls label stack in text for.  Sometimes people did:
"{ Label1, Label2, Label3 }", sometimes people would do:
"[ label3, label2, label1 ]", and most of the time label
stacks were not explicitly shown at all.

The syntax I wound up using, so it would not have spaces and so it
would visually distinct from other kinds of addresses is.

label1/label2/label3 Where label1 is the label at the top of the label
stack and label3 is the label at the bottom on the label stack.

When there is a single label this matches what seems to be convention
with other tools.  Just print out the numeric value of the mpls label.

The netlink protocol for labels uses the on the wire format for a
label stack. The ttl and traffic class are expected to be 0.  Using
the on the wire format is common and what happens with other address
types. BGP when passing label stacks also uses this technique with the
exception that the ttl byte is not included making each label in a BGP
label stack 3 bytes instead of 4.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2015-03-24 15:45:23 -07:00
..
can can: update kernel header 2015-02-05 10:17:50 -08:00
hdlc Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
netfilter Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
netfilter_ipv4 Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
tc_act update kernel headers to net-next 4.0-rc5 2015-03-24 15:45:23 -07:00
tc_ematch Update to 3.1-rc9 kernel headers 2011-10-10 11:02:42 -07:00
atm.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
atmapi.h ATM cell alignment. 2008-04-17 10:04:31 -07:00
atmioc.h ATM cell alignment. 2008-04-17 10:04:31 -07:00
atmsap.h ATM cell alignment. 2008-04-17 10:04:31 -07:00
bpf.h update kernel headers to net-next 4.0-rc5 2015-03-24 15:45:23 -07:00
bpf_common.h Update kernel headers to 3.18-rc2 2014-10-29 22:32:02 -07:00
can.h Update to current net-next kernel headers 2014-06-09 12:50:30 -07:00
fib_rules.h Update to 3.12-rc1 headers 2013-09-23 13:15:49 -07:00
filter.h update kernel headers to net-next 4.0-rc5 2015-03-24 15:45:23 -07:00
fou.h update headers to 3.20-rc1 2015-02-20 16:58:45 -08:00
gen_stats.h Update to 3.11-rc1 kernel headers 2013-07-16 10:19:56 -07:00
genetlink.h Update header files to 3.13-rc2 net-next 2013-12-17 22:32:19 -08:00
if.h Update headers to net-next 2014-03-21 14:16:17 -07:00
if_addr.h update kernel headers to net-next 4.0-rc5 2015-03-24 15:45:23 -07:00
if_addrlabel.h Update exported kernel headers 2009-12-26 11:02:25 -08:00
if_arp.h Update headers files from net-next 2014-01-20 12:28:42 -08:00
if_bridge.h update kernel headers to 3.19 net-next 2015-01-13 17:39:32 -08:00
if_ether.h Update kernel headers to 3.18-rc2 2014-10-29 22:32:02 -07:00
if_link.h update kernel headers to net-next 4.0-rc5 2015-03-24 15:45:23 -07:00
if_tun.h update kernel headers to 3.19-rc1 2014-12-20 12:22:01 -08:00
if_tunnel.h update kernel headers to net-next (3.18-rc6) 2014-12-03 09:27:43 -08:00
if_vlan.h Update kernel headers to 3.9.0-rc1 2013-02-28 08:43:46 -08:00
in6.h resolve header file conflict betwen linux/in6.h and netinet/in.h 2014-12-20 12:14:30 -08:00
inet_diag.h Update kernel headers to 3.18-rc2 2014-10-29 22:32:02 -07:00
ip6_tunnel.h Update headers to 3.7-pre-rc 2012-10-03 08:48:37 -07:00
l2tp.h update kernel headers to 3.19 net-next 2015-01-13 17:39:32 -08:00
libc-compat.h update kernel headers to 3.19 net-next 2015-01-13 17:39:32 -08:00
mpls.h add basic mpls support to iproute 2015-03-24 15:45:23 -07:00
neighbour.h update kernel headers to net-next 4.0-rc5 2015-03-24 15:45:23 -07:00
net_namespace.h update headers to 3.20-rc1 2015-02-20 16:58:45 -08:00
netconf.h Update header files to 3.13-rc2 net-next 2013-12-17 22:32:19 -08:00
netdevice.h Update kernel headers to net-next 2014-08-04 12:39:49 -07:00
netfilter.h Update to 3.13-rc6 + net-next headers 2014-01-09 22:45:49 -08:00
netfilter_ipv4.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
netlink.h Update headers to 3.10 2013-05-03 13:15:36 -07:00
netlink_diag.h Update header files to 3.13-rc2 net-next 2013-12-17 22:32:19 -08:00
packet_diag.h Update header files to 3.13-rc2 net-next 2013-12-17 22:32:19 -08:00
pkt_cls.h update headers files for net-next 2015-03-24 15:45:23 -07:00
pkt_sched.h update headers to 3.20-rc1 2015-02-20 16:58:45 -08:00
rtnetlink.h update headers files for net-next 2015-03-24 15:45:23 -07:00
sock_diag.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
socket.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
tcp.h Update headers to net-next 2014-03-21 14:16:17 -07:00
tcp_metrics.h Update headers to net-next 2014-03-21 14:16:17 -07:00
types.h Update kernel headers to 3.8-pre 2012-12-11 11:16:36 -08:00
unix_diag.h Update header files to 3.13-rc2 net-next 2013-12-17 22:32:19 -08:00
veth.h veth.h move to linux/ 2007-12-25 12:38:08 -08:00
xfrm.h Update kernel headers to 3.18-rc2 2014-10-29 22:32:02 -07:00