mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
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>
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user