]> git.sur5r.net Git - u-boot/commitdiff
net: cosmetic: Add a more explicit comment about 802.2
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 07:58:11 +0000 (07:58 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 22:46:16 +0000 (17:46 -0500)
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>
include/net.h
net/net.c

index ff66073e6e6360cfbd3d29629ebbdd65882a982b..730af4f1653b53788d17fe9cc6034a8196d8cd14 100644 (file)
@@ -179,11 +179,11 @@ struct e802_hdr {
        ushort          et_prot;        /* 802 protocol                 */
 };
 
-/* 802 ethernet header size */
+/* 802 + SNAP + ethernet header size */
 #define E802_HDR_SIZE  (sizeof(struct e802_hdr))
 
 /*
- *     Ethernet header
+ *     Virtual LAN Ethernet header
  */
 struct vlan_ethernet_hdr {
        uchar           vet_dest[6];    /* Destination node             */
index b8a267ccbe7d71dbcf1921f62f496590974b9132..1293688aba61cea7800c1658cec5434a8da51421 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -898,7 +898,8 @@ NetReceive(uchar *inpkt, int len)
        if (x < 1514) {
                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);