core/net/uip: Rename uip_ethaddr
to uip_lladdr
.
There isn't really a good reason I can think of for these to be different between IPv4 and IPv6.
This commit is contained in:
parent
9c8f1d5356
commit
1d113f52ad
11 changed files with 33 additions and 34 deletions
|
@ -155,11 +155,11 @@ HMODULE wpcap;
|
|||
|
||||
static struct pcap *pcap;
|
||||
|
||||
/* uip_ethaddr is defined in uip.c. It is not used in uip6.c.
|
||||
/* uip_lladdr is defined in uip.c. It is not used in uip6.c.
|
||||
* If needed for some purpose it can be defined here
|
||||
*/
|
||||
#if UIP_CONF_IPV6
|
||||
//struct uip_eth_addr uip_ethaddr;
|
||||
//struct uip_eth_addr uip_lladdr;
|
||||
#endif
|
||||
|
||||
static int (* pcap_findalldevs)(struct pcap_if **, char *);
|
||||
|
@ -266,7 +266,7 @@ set_ethaddr(struct in_addr addr)
|
|||
adapters->PhysicalAddress[4], adapters->PhysicalAddress[5]);
|
||||
log_message("set_ethaddr: ethernetaddr: ", buffer);
|
||||
#if UIP_CONF_IPV6
|
||||
// int i;for (i=0;i<6;i++) uip_ethaddr.addr[i] = adapters->PhysicalAddress[i];
|
||||
// int i;for (i=0;i<6;i++) uip_lladdr.addr[i] = adapters->PhysicalAddress[i];
|
||||
#else
|
||||
uip_setethaddr((*(struct uip_eth_addr *)adapters->PhysicalAddress));
|
||||
#endif
|
||||
|
@ -328,7 +328,7 @@ set_ethaddr6(struct in_addr6 addr)
|
|||
adapters->PhysicalAddress[4], adapters->PhysicalAddress[5]);
|
||||
log_message("set_ethaddr: ethernetaddr: ", buffer);
|
||||
#if UIP_CONF_IPV6
|
||||
// int i;for (i=0;i<6;i++) uip_ethaddr.addr[i] = adapters->PhysicalAddress[i]; //does this need doing?
|
||||
// int i;for (i=0;i<6;i++) uip_lladdr.addr[i] = adapters->PhysicalAddress[i]; //does this need doing?
|
||||
#else
|
||||
uip_setethaddr((*(struct uip_eth_addr *)adapters->PhysicalAddress));
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue