| /components/net/lwip/lwip-2.0.3/src/core/ipv6/ |
| A D | ethip6.c | 82 const u8_t *hwaddr; in ethip6_output() local 96 return ethernet_output(netif, q, (const struct eth_addr*)(netif->hwaddr), &dest, ETHTYPE_IPV6); in ethip6_output() 103 result = nd6_get_next_hop_addr_or_queue(netif, q, ip6addr, &hwaddr); in ethip6_output() 109 if (hwaddr == NULL) { in ethip6_output() 114 SMEMCPY(dest.addr, hwaddr, 6); in ethip6_output() 115 return ethernet_output(netif, q, (const struct eth_addr*)(netif->hwaddr), &dest, ETHTYPE_IPV6); in ethip6_output()
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv6/ |
| A D | ethip6.c | 82 const u8_t *hwaddr; in ethip6_output() local 101 return ethernet_output(netif, q, (const struct eth_addr*)(netif->hwaddr), &dest, ETHTYPE_IPV6); in ethip6_output() 108 result = nd6_get_next_hop_addr_or_queue(netif, q, ip6addr, &hwaddr); in ethip6_output() 114 if (hwaddr == NULL) { in ethip6_output() 119 SMEMCPY(dest.addr, hwaddr, 6); in ethip6_output() 120 return ethernet_output(netif, q, (const struct eth_addr*)(netif->hwaddr), &dest, ETHTYPE_IPV6); in ethip6_output()
|
| /components/net/lwip/lwip-2.0.3/test/fuzz/ |
| A D | fuzz.c | 61 netif->hwaddr[0] = 0x00; in testif_init() 62 netif->hwaddr[1] = 0x23; in testif_init() 63 netif->hwaddr[2] = 0xC1; in testif_init() 64 netif->hwaddr[3] = 0xDE; in testif_init() 65 netif->hwaddr[4] = 0xD0; in testif_init() 66 netif->hwaddr[5] = 0x0D; in testif_init()
|
| /components/net/lwip/lwip-2.1.2/test/fuzz/ |
| A D | fuzz.c | 78 netif->hwaddr[0] = 0x00; in testif_init() 79 netif->hwaddr[1] = 0x23; in testif_init() 80 netif->hwaddr[2] = 0xC1; in testif_init() 81 netif->hwaddr[3] = 0xDE; in testif_init() 82 netif->hwaddr[4] = 0xD0; in testif_init() 83 netif->hwaddr[5] = 0x0D; in testif_init()
|
| /components/net/lwip/lwip-1.4.1/src/core/ipv4/ |
| A D | autoip.c | 90 #define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \ 91 ((u32_t)((netif->hwaddr[3]) & 0xff) << 16) | \ 92 ((u32_t)((netif->hwaddr[2]) & 0xff) << 8) | \ 93 ((u32_t)((netif->hwaddr[4]) & 0xff))) + \ 103 htonl(AUTOIP_RANGE_START + ((u32_t)(((u8_t)(netif->hwaddr[4])) | \ 104 ((u32_t)((u8_t)(netif->hwaddr[5]))) << 8))) 231 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, ðbroadcast, in autoip_arp_probe() 232 (struct eth_addr *)netif->hwaddr, IP_ADDR_ANY, ðzero, in autoip_arp_probe() 244 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, ðbroadcast, in autoip_arp_announce() 245 (struct eth_addr *)netif->hwaddr, &netif->autoip->llipaddr, ðzero, in autoip_arp_announce() [all …]
|
| /components/net/lwip/lwip-2.1.2/test/unit/core/ |
| A D | test_netif.c | 50 netif->hwaddr[0] = 0x02; in testif_init() 51 netif->hwaddr[1] = 0x03; in testif_init() 52 netif->hwaddr[2] = 0x04; in testif_init() 53 netif->hwaddr[3] = 0x05; in testif_init() 54 netif->hwaddr[4] = 0x06; in testif_init() 55 netif->hwaddr[5] = 0x07; in testif_init()
|
| /components/net/lwip/lwip-2.1.2/test/unit/dhcp/ |
| A D | test_dhcp.c | 179 netif->hwaddr[0] = 0x00; in testif_init() 180 netif->hwaddr[1] = 0x23; in testif_init() 181 netif->hwaddr[2] = 0xC1; in testif_init() 182 netif->hwaddr[3] = 0xDE; in testif_init() 183 netif->hwaddr[4] = 0xD0; in testif_init() 184 netif->hwaddr[5] = 0x0D; in testif_init() 281 check_pkt(p, 70, netif->hwaddr, 6); /* mac addr inside bootp */ in lwip_tx_func() 326 check_pkt(p, 6, netif->hwaddr, 6); /* eth level src: unit mac */ in lwip_tx_func() 334 check_pkt(p, 70, netif->hwaddr, 6); /* mac addr inside bootp */ in lwip_tx_func() 362 check_pkt(p, 70, netif->hwaddr, 6); /* mac addr inside bootp */ in lwip_tx_func() [all …]
|
| /components/net/lwip/lwip-2.0.3/test/unit/dhcp/ |
| A D | test_dhcp.c | 178 netif->hwaddr[0] = 0x00; in testif_init() 179 netif->hwaddr[1] = 0x23; in testif_init() 180 netif->hwaddr[2] = 0xC1; in testif_init() 181 netif->hwaddr[3] = 0xDE; in testif_init() 182 netif->hwaddr[4] = 0xD0; in testif_init() 183 netif->hwaddr[5] = 0x0D; in testif_init() 278 check_pkt(p, 70, netif->hwaddr, 6); /* mac addr inside bootp */ in lwip_tx_func() 323 check_pkt(p, 6, netif->hwaddr, 6); /* eth level src: unit mac */ in lwip_tx_func() 331 check_pkt(p, 70, netif->hwaddr, 6); /* mac addr inside bootp */ in lwip_tx_func() 359 check_pkt(p, 70, netif->hwaddr, 6); /* mac addr inside bootp */ in lwip_tx_func() [all …]
|
| /components/net/lwip/lwip-2.0.3/doc/ |
| A D | NO_SYS_SampleCode.c | 59 SMEMCPY(netif->hwaddr, your_mac_address_goes_here, sizeof(netif->hwaddr)); in netif_init() 60 netif->hwaddr_len = sizeof(netif->hwaddr); in netif_init()
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv4/ |
| A D | autoip.c | 76 #define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \ 77 ((u32_t)((netif->hwaddr[3]) & 0xff) << 16) | \ 78 ((u32_t)((netif->hwaddr[2]) & 0xff) << 8) | \ 79 ((u32_t)((netif->hwaddr[4]) & 0xff))) + \ 89 lwip_htonl(AUTOIP_RANGE_START + ((u32_t)(((u8_t)(netif->hwaddr[4])) | \ 90 ((u32_t)((u8_t)(netif->hwaddr[5]))) << 8))) 466 ETHADDR16_COPY(netifaddr.addr, netif->hwaddr); in autoip_arp_reply()
|
| A D | etharp.c | 488 ethernet_output(netif, p, (struct eth_addr*)(netif->hwaddr), ethaddr, ETHTYPE_IP); 708 (struct eth_addr *)netif->hwaddr, &hdr->shwaddr, 709 (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), 767 …return ethernet_output(netif, q, (struct eth_addr*)(netif->hwaddr), &arp_table[arp_idx].ethaddr, E… 893 return ethernet_output(netif, q, (struct eth_addr*)(netif->hwaddr), dest, ETHTYPE_IP); 932 struct eth_addr * srcaddr = (struct eth_addr *)netif->hwaddr; 1184 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, 1185 (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), ðzero,
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv4/ |
| A D | autoip.c | 76 #define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \ 77 ((u32_t)((netif->hwaddr[3]) & 0xff) << 16) | \ 78 ((u32_t)((netif->hwaddr[2]) & 0xff) << 8) | \ 79 ((u32_t)((netif->hwaddr[4]) & 0xff))) + \ 89 lwip_htonl(AUTOIP_RANGE_START + ((u32_t)(((u8_t)(netif->hwaddr[4])) | \ 90 ((u32_t)((u8_t)(netif->hwaddr[5]))) << 8))) 466 SMEMCPY(netifaddr.addr, netif->hwaddr, ETH_HWADDR_LEN); in autoip_arp_reply()
|
| A D | etharp.c | 486 ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP); 710 (struct eth_addr *)netif->hwaddr, &hdr->shwaddr, 711 (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), 769 …return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, … 896 return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), dest, ETHTYPE_IP); 935 struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr; 1183 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, 1184 (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), ðzero,
|
| /components/net/lwip/lwip-2.1.2/test/unit/ip6/ |
| A D | test_ip6.c | 255 fail_unless(!memcmp(test_netif6.hwaddr, zeros, 6)); in START_TEST() 261 memcpy(test_netif6.hwaddr, test_mac_addr, 6); in START_TEST() 286 memset(&test_netif6.hwaddr, 0, sizeof(test_netif6.hwaddr)); in START_TEST()
|
| /components/drivers/usb/cherryusb/demo/ |
| A D | cdc_rndis_template.c | 377 memcpy(netif->hwaddr, mac, 6); in rndis_lwip_init() 378 netif->hwaddr[5] = ~netif->hwaddr[5]; /* device mac can't same as host. */ in rndis_lwip_init()
|
| A D | cdc_ecm_template.c | 404 memcpy(netif->hwaddr, mac, 6); in cdc_ecm_lwip_init() 405 netif->hwaddr[5] = ~netif->hwaddr[5]; /* device mac can't same as host. */ in cdc_ecm_lwip_init()
|
| /components/net/lwip/lwip-2.1.2/src/netif/ |
| A D | lowpan6.c | 539 LWIP_ERROR("NETIF_MAX_HWADDR_LEN >= 8 required", sizeof(netif->hwaddr) >= 8, return ERR_VAL;); in lowpan6_hwaddr_to_addr() 540 SMEMCPY(addr->addr, netif->hwaddr, 8); in lowpan6_hwaddr_to_addr() 543 SMEMCPY(addr->addr, netif->hwaddr, 3); in lowpan6_hwaddr_to_addr() 545 SMEMCPY(&addr->addr[5], &netif->hwaddr[3], 3); in lowpan6_hwaddr_to_addr() 569 const u8_t *hwaddr; in lowpan6_output() local 621 result = nd6_get_next_hop_addr_or_queue(netif, q, ip6addr, &hwaddr); in lowpan6_output() 628 if (hwaddr == NULL) { in lowpan6_output() 637 SMEMCPY(dest.addr, hwaddr, netif->hwaddr_len); in lowpan6_output()
|
| A D | zepif.c | 274 memcpy(netif->hwaddr, init_state->addr, 6); in zepif_init() 278 netif->hwaddr[i] = i; in zepif_init() 280 netif->hwaddr[0] &= 0xfc; in zepif_init()
|
| A D | bridgeif.c | 230 if (!memcmp(br->netif->hwaddr, addr, sizeof(struct eth_addr))) { in bridgeif_is_local_mac() 237 if (!memcmp(portif->hwaddr, addr, sizeof(struct eth_addr))) { in bridgeif_is_local_mac() 494 memcpy(netif->hwaddr, &br->ethaddr, ETH_HWADDR_LEN); in bridgeif_init()
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | netif.c | 1224 ip_2_ip6(&netif->ip6_addr[0])->addr[2] = lwip_htonl((((u32_t)(netif->hwaddr[0] ^ 0x02)) << 24) | in netif_create_ip6_linklocal_address() 1225 ((u32_t)(netif->hwaddr[1]) << 16) | in netif_create_ip6_linklocal_address() 1226 ((u32_t)(netif->hwaddr[2]) << 8) | in netif_create_ip6_linklocal_address() 1229 ((u32_t)(netif->hwaddr[3]) << 16) | in netif_create_ip6_linklocal_address() 1230 ((u32_t)(netif->hwaddr[4]) << 8) | in netif_create_ip6_linklocal_address() 1231 (netif->hwaddr[5])); in netif_create_ip6_linklocal_address() 1242 …ip_2_ip6(&netif->ip6_addr[0])->addr[addr_index] |= ((u32_t)(netif->hwaddr[netif->hwaddr_len - i - … in netif_create_ip6_linklocal_address()
|
| /components/net/lwip/lwip-1.4.1/src/netif/ |
| A D | etharp.c | 509 etharp_send_ip(netif, p, (struct eth_addr*)(netif->hwaddr), ethaddr); 856 return etharp_send_ip(netif, q, (struct eth_addr*)(netif->hwaddr), 979 return etharp_send_ip(netif, q, (struct eth_addr*)(netif->hwaddr), dest); 1018 struct eth_addr * srcaddr = (struct eth_addr *)netif->hwaddr; 1262 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, ðbroadcast, 1263 (struct eth_addr *)netif->hwaddr, &netif->ip_addr, ðzero, 1372 etharp_arp_input(netif, (struct eth_addr*)(netif->hwaddr), p);
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmp_mib2_interfaces.c | 186 value_len = sizeof(netif->hwaddr); in interfaces_Table_get_value() 187 MEMCPY(value, &netif->hwaddr, value_len); in interfaces_Table_get_value()
|
| /components/net/lwip/lwip-2.1.2/doc/ |
| A D | NO_SYS_SampleCode.c | 59 SMEMCPY(netif->hwaddr, your_mac_address_goes_here, ETH_HWADDR_LEN); in netif_init()
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmp_mib2_interfaces.c | 193 value_len = sizeof(netif->hwaddr); in interfaces_Table_get_value() 194 MEMCPY(value, &netif->hwaddr, value_len); in interfaces_Table_get_value()
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | netif.c | 1557 ip_2_ip6(&netif->ip6_addr[0])->addr[2] = lwip_htonl((((u32_t)(netif->hwaddr[0] ^ 0x02)) << 24) | in netif_create_ip6_linklocal_address() 1558 ((u32_t)(netif->hwaddr[1]) << 16) | in netif_create_ip6_linklocal_address() 1559 ((u32_t)(netif->hwaddr[2]) << 8) | in netif_create_ip6_linklocal_address() 1562 ((u32_t)(netif->hwaddr[3]) << 16) | in netif_create_ip6_linklocal_address() 1563 ((u32_t)(netif->hwaddr[4]) << 8) | in netif_create_ip6_linklocal_address() 1564 (netif->hwaddr[5])); in netif_create_ip6_linklocal_address() 1575 …ip_2_ip6(&netif->ip6_addr[0])->addr[addr_index] |= lwip_htonl(((u32_t)(netif->hwaddr[netif->hwaddr… in netif_create_ip6_linklocal_address()
|