David Lebrun 38ee7f2d47 ipv6: sr: add support for encapsulation of L2 frames
This patch implements the L2 frame encapsulation mechanism, referred to
as T.Encaps.L2 in the SRv6 specifications [1].

A new type of SRv6 tunnel mode is added (SEG6_IPTUN_MODE_L2ENCAP). It only
accepts packets with an existing MAC header (i.e., it will not work for
locally generated packets). The resulting packet looks like IPv6 -> SRH ->
Ethernet -> original L3 payload. The next header field of the SRH is set to
NEXTHDR_NONE.

[1] https://tools.ietf.org/html/draft-filsfils-spring-srv6-network-programming-01

Signed-off-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-25 17:10:23 -07:00
..
2017-04-12 22:02:40 +02:00
2017-08-09 22:43:50 -07:00
2017-08-24 21:57:50 -07:00
2017-07-21 16:26:01 -07:00
2017-08-23 22:31:38 -07:00
2017-08-03 09:13:51 -07:00
2017-06-15 12:12:40 -04:00
2017-06-15 12:12:40 -04:00
2017-08-16 11:27:52 -07:00