9
0
Fork 0

do not abuse the received packet to send back another packet

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-08-19 16:17:11 +02:00
parent 6289b5a51d
commit 4ad31ee437
1 changed files with 2 additions and 1 deletions

View File

@ -566,7 +566,8 @@ NetReceive(uchar * inpkt, int len)
NetCopyIP(&arp->ar_data[16], &arp->ar_data[6]);
memcpy (&arp->ar_data[ 0], NetOurEther, 6);
NetCopyIP(&arp->ar_data[ 6], &NetOurIP);
(void) eth_send((uchar *)et, (pkt - (uchar *)et) + ARP_HDR_SIZE);
memcpy(NetTxPacket, et, (pkt - (uchar *)et) + ARP_HDR_SIZE);
eth_send((uchar *)NetTxPacket, (pkt - (uchar *)et) + ARP_HDR_SIZE);
return;
case ARPOP_REPLY: /* arp reply */