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/arp.c | |
parent | c5c59df04d6bb394209936c2a2c2a3054ead9150 (diff) |
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/arp.c')
-rw-r--r-- | net/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/arp.c b/net/arp.c index 03272adf574..c3def633b64 100644 --- a/net/arp.c +++ b/net/arp.c @@ -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); |