fix(demo/cdc_ecm_template): device tcp/ip stack mac can't same as host
This commit is contained in:
@@ -215,6 +215,7 @@ void cdc_ecm_lwip_init(void)
|
||||
|
||||
netif->hwaddr_len = 6;
|
||||
memcpy(netif->hwaddr, mac, 6);
|
||||
netif->hwaddr[5] = ~netif->hwaddr[5]; /* device mac can't same as host. */
|
||||
|
||||
netif = netif_add(netif, &ipaddr, &netmask, &gateway, NULL, cdc_ecm_if_init, netif_input);
|
||||
netif_set_default(netif);
|
||||
|
||||
Reference in New Issue
Block a user