mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
net: cosmetic: Add a more explicit comment about 802.2
Make the comment more accurate about the header including SNAP Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
206d07fd7c
commit
da5ebe2c9a
2 changed files with 4 additions and 3 deletions
|
@ -179,11 +179,11 @@ struct e802_hdr {
|
||||||
ushort et_prot; /* 802 protocol */
|
ushort et_prot; /* 802 protocol */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 802 ethernet header size */
|
/* 802 + SNAP + ethernet header size */
|
||||||
#define E802_HDR_SIZE (sizeof(struct e802_hdr))
|
#define E802_HDR_SIZE (sizeof(struct e802_hdr))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ethernet header
|
* Virtual LAN Ethernet header
|
||||||
*/
|
*/
|
||||||
struct vlan_ethernet_hdr {
|
struct vlan_ethernet_hdr {
|
||||||
uchar vet_dest[6]; /* Destination node */
|
uchar vet_dest[6]; /* Destination node */
|
||||||
|
|
|
@ -898,7 +898,8 @@ NetReceive(uchar *inpkt, int len)
|
||||||
if (x < 1514) {
|
if (x < 1514) {
|
||||||
struct e802_hdr *et802 = (struct e802_hdr *)et;
|
struct e802_hdr *et802 = (struct e802_hdr *)et;
|
||||||
/*
|
/*
|
||||||
* Got a 802 packet. Check the other protocol field.
|
* Got a 802.2 packet. Check the other protocol field.
|
||||||
|
* XXX VLAN over 802.2+SNAP not implemented!
|
||||||
*/
|
*/
|
||||||
x = ntohs(et802->et_prot);
|
x = ntohs(et802->et_prot);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue