Add Virtual LAN support.
authorPaulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Mon, 23 Dec 2013 14:32:02 +0000 (12:32 -0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 3 May 2017 11:03:50 +0000 (13:03 +0200)
commitd9f7de0ae3c0c09cff7257c55418450261f3e082
treedb3249fd9c7c8ea00b5775ddb201ceb31674b66c
parentdc6e1b5af83eb1c4290baf97c2d221c0865127be
Add Virtual LAN support.

This patch adds support for virtual LAN (VLAN) tagging. VLAN tagging allows
multiple VLANs in a bridged network to share the same physical network link
but maintain isolation:

http://en.wikipedia.org/wiki/IEEE_802.1Q

* grub-core/net/ethernet.c: Add check, get, and set vlan tag id.
* grub-core/net/drivers/ieee1275/ofnet.c: Get vlan tag id from bootargs.
* grub-core/net/arp.c: Add check.
* grub-core/net/ip.c: Likewise.
* include/grub/net/arp.h: Add vlantag attribute.
* include/grub/net/ip.h: Likewise.
grub-core/net/arp.c
grub-core/net/drivers/ieee1275/ofnet.c
grub-core/net/ethernet.c
grub-core/net/ip.c
include/grub/net.h
include/grub/net/arp.h
include/grub/net/ip.h