diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:58:06 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 17:46:14 -0500 |
commit | cb487f5664b1bf7d907f5d23fe10cc14dc1bd45a (patch) | |
tree | 6ccb6584841af8f1974910d5123805e1d74f4d3b /net/bootp.c | |
parent | c5c59df04d6bb394209936c2a2c2a3054ead9150 (diff) | |
download | u-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/bootp.c')
-rw-r--r-- | net/bootp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bootp.c b/net/bootp.c index b8d2760..3285250 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -103,7 +103,7 @@ static void BootpCopyNetParams(struct Bootp_t *bp) NetCopyIP(&tmp_ip, &bp->bp_siaddr); if (tmp_ip != 0) NetCopyIP(&NetServerIP, &bp->bp_siaddr); - memcpy(NetServerEther, ((Ethernet_t *)NetRxPacket)->et_src, 6); + memcpy(NetServerEther, ((struct ethernet_hdr *)NetRxPacket)->et_src, 6); #endif if (strlen(bp->bp_file) > 0) copy_filename(BootFile, bp->bp_file, sizeof(BootFile)); |