Fixed source MAC address setting bug.
This commit is contained in:
parent
c5b3ade0c0
commit
608e64a788
1
NEWS
1
NEWS
|
|
@ -12,6 +12,7 @@ Changes in version 1.3.2:
|
|||
* Master takes mailbox sync manager configurations from EEPROM words
|
||||
0x0018-0x001b, if no sync manager configurations are provided.
|
||||
* Calculate checksum when writing EEPROM or alias address.
|
||||
* Fixed source MAC address setting bug.
|
||||
* Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ void ec_device_attach(ec_device_t *device, /**< EtherCAT device */
|
|||
|
||||
for (i = 0; i < EC_TX_RING_SIZE; i++) {
|
||||
device->tx_skb[i]->dev = net_dev;
|
||||
eth = (struct ethhdr *) (device->tx_skb[i]->data + ETH_HLEN);
|
||||
eth = (struct ethhdr *) (device->tx_skb[i]->data);
|
||||
memcpy(eth->h_source, net_dev->dev_addr, ETH_ALEN);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue