mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-25 16:12:05 +00: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:
parent
c5c59df04d
commit
cb487f5664
9 changed files with 36 additions and 26 deletions
|
@ -113,7 +113,7 @@ void ArpTimeoutCheck(void)
|
|||
}
|
||||
}
|
||||
|
||||
void ArpReceive(Ethernet_t *et, struct ip_udp_hdr *ip, int len)
|
||||
void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
|
||||
{
|
||||
ARP_t *arp;
|
||||
IPaddr_t tmp;
|
||||
|
@ -193,7 +193,7 @@ void ArpReceive(Ethernet_t *et, struct ip_udp_hdr *ip, int len)
|
|||
NetGetHandler()(0, 0, 0, 0, 0);
|
||||
#endif
|
||||
/* modify header, and transmit it */
|
||||
memcpy(((Ethernet_t *)NetArpWaitTxPacket)->
|
||||
memcpy(((struct ethernet_hdr *)NetArpWaitTxPacket)->
|
||||
et_dest, NetArpWaitPacketMAC, 6);
|
||||
(void) eth_send(NetArpWaitTxPacket,
|
||||
NetArpWaitTxPacketSize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue