Commit c6c09267 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk Committed by Alessandro Rubini

spec: remove ethhdr struct definition from minic.h, it is already in spec.h

parent 9b4a64c3
......@@ -7,12 +7,6 @@
#define ETH_ALEN 6
#define ETH_P_1588 0x88F7 /* IEEE 1588 Timesync */
struct ethhdr {
unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
unsigned char h_source[ETH_ALEN]; /* source ether addr */
uint16_t h_proto; /* packet type ID field */
} __attribute__((packed));
void minic_init();
void minic_disable();
int minic_poll_rx();
......
......@@ -44,7 +44,7 @@ int spec_send_packet(struct pp_instance *ppi, void *pkt, int len, int chtype,
int use_pdelay_addr)
{
static int led;
struct ethhdr hdr;
struct spec_ethhdr hdr;
if (OPTS(ppi)->gptp_mode)
memcpy(hdr.h_dest, PP_PEER_MACADDRESS, ETH_ALEN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment