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.
This commit is contained in:
parent
dc6e1b5af8
commit
d9f7de0ae3
7 changed files with 92 additions and 20 deletions
|
@ -291,6 +291,7 @@ struct grub_net_network_level_interface
|
|||
grub_net_interface_flags_t flags;
|
||||
struct grub_net_bootp_packet *dhcp_ack;
|
||||
grub_size_t dhcp_acklen;
|
||||
grub_uint16_t vlantag;
|
||||
void *data;
|
||||
};
|
||||
|
||||
|
@ -561,4 +562,6 @@ extern char *grub_net_default_server;
|
|||
#define GRUB_NET_INTERVAL 400
|
||||
#define GRUB_NET_INTERVAL_ADDITION 20
|
||||
|
||||
#define VLANTAG_IDENTIFIER 0x8100
|
||||
|
||||
#endif /* ! GRUB_NET_HEADER */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue