|
struct ether_frame_struct {
unsigned char dst_mac[6]; // Dst MAC
unsigned char src_mac[6]; // Src MAC
unsigned char type[2]; // Type
};
unsigned char *ARP_ADDR[6] = {0x00, 0xff, 0xff, 0xff, 0xff, 0x11};
send_buffer.ether.src_mac[0]=ARP_ADDR[0];
...
send_buffer.ether.src_mac[5]=ARP_ADDR[5];
E-mail: info@telesys.ru