summaryrefslogtreecommitdiff
path: root/net/cdp.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:58:06 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:46:14 -0500
commitcb487f5664b1bf7d907f5d23fe10cc14dc1bd45a (patch)
tree6ccb6584841af8f1974910d5123805e1d74f4d3b /net/cdp.c
parentc5c59df04d6bb394209936c2a2c2a3054ead9150 (diff)
downloadu-boot-imx-cb487f5664b1bf7d907f5d23fe10cc14dc1bd45a.zip
u-boot-imx-cb487f5664b1bf7d907f5d23fe10cc14dc1bd45a.tar.gz
u-boot-imx-cb487f5664b1bf7d907f5d23fe10cc14dc1bd45a.tar.bz2
net: cosmetic: Un-typedef Ethernet_t
Separate the Ethernet header from the 802 header. Base the size constants on the structs. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/cdp.c')
-rw-r--r--net/cdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/cdp.c b/net/cdp.c
index 004aae2..63be570 100644
--- a/net/cdp.c
+++ b/net/cdp.c
@@ -109,7 +109,7 @@ CDPSendTrigger(void)
uchar *pkt;
ushort *s;
ushort *cp;
- Ethernet_t *et;
+ struct ethernet_hdr *et;
int len;
ushort chksum;
#if defined(CONFIG_CDP_DEVICE_ID) || defined(CONFIG_CDP_PORT_ID) || \
@@ -118,7 +118,7 @@ CDPSendTrigger(void)
#endif
pkt = NetTxPacket;
- et = (Ethernet_t *)pkt;
+ et = (struct ethernet_hdr *)pkt;
/* NOTE: trigger sent not on any VLAN */