]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/ip_gre.c
gre: Add Transparent Ethernet Bridging
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Oct 2008 19:00:17 +0000 (12:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 19:00:17 +0000 (12:00 -0700)
commite1a8000228e16212c93b23cfbed4d622e2ec7a6b
tree8a2b26a105abea23778228e7ea6d95500037a632
parentc19e654ddbe3831252f61e76a74d661e1a755530
gre: Add Transparent Ethernet Bridging

This patch adds support for Ethernet over GRE encapsulation.
This is exposed to user-space with a new link type of "gretap"
instead of "gre".  It will create an ARPHRD_ETHER device in
lieu of the usual ARPHRD_IPGRE.

Note that to preserver backwards compatibility all Transparent
Ethernet Bridging packets are passed to an ARPHRD_IPGRE tunnel
if its key matches and there is no ARPHRD_ETHER device whose
key matches more closely.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_ether.h
net/ipv4/ip_gre.c