for (i = 0; i < 6; i++)
{
eth.eh_dst[i] = 0xff;
arp.arp_tha[i] = 0x00;
}
// {填充dlc头和arp头
eth.eh_type = htons(eth_arp);
memcpy(eth.eh_src, mac, 6);
for (i = 0; i < 6; i++)
{
eth.eh_dst[i] = 0xff;
arp.arp_tha[i] = 0x00;
}
// {填充dlc头和arp头
eth.eh_type = htons(eth_arp);
memcpy(eth.eh_src, mac, 6);