Home
last modified time | relevance | path

Searched refs:hwaddr (Results 1 - 25 of 26) sorted by relevance

12

/third_party/lwip/src/core/ipv6/
H A Dethip6.c82 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()
H A Dnd6.c1342 SMEMCPY(lladdr_opt->addr, netif->hwaddr, netif->hwaddr_len);
1413 SMEMCPY(lladdr_opt->addr, netif->hwaddr, netif->hwaddr_len);
1492 SMEMCPY(lladdr_opt->addr, netif->hwaddr, netif->hwaddr_len);
/third_party/lwip/test/fuzz/
H A Dfuzz.c78 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()
/third_party/lwip/test/unit/core/
H A Dtest_netif.c50 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()
/third_party/lwip/src/core/ipv4/
H A Dautoip.c76 #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)))
482 /* when ip.src == llipaddr && hw.src != netif->hwaddr in autoip_arp_reply()
484 * when probing ip.dst == llipaddr && hw.src != netif->hwaddr in autoip_arp_reply()
489 SMEMCPY(netifaddr.addr, netif->hwaddr, ETH_HWADDR_LEN); in autoip_arp_reply()
502 * ip.dst == llipaddr && hw.src != own hwaddr in autoip_arp_reply()
[all...]
H A Detharp.c515 ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP);
742 (struct eth_addr *)netif->hwaddr, &hdr->shwaddr,
743 (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif),
801 return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP);
928 return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), dest, ETHTYPE_IP);
967 struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr;
1223 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
1224 (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), &ethzero,
H A Ddhcp.c1861 if (netif->hwaddr[i] != reply_msg->chaddr[i]) {
1863 ("netif->hwaddr[%"U16_F"]==%02"X16_F" != reply_msg->chaddr[%"U16_F"]==%02"X16_F"\n",
1864 (u16_t)i, (u16_t)netif->hwaddr[i], (u16_t)i, (u16_t)reply_msg->chaddr[i]));
2010 msg_out->chaddr[i] = netif->hwaddr[i];
/third_party/lwip/test/unit/ip6/
H A Dtest_ip6.c255 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()
/third_party/lwip/src/netif/
H A Dzepif.c274 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()
H A Dlowpan6.c564 LWIP_ERROR("NETIF_MAX_HWADDR_LEN >= 8 required", sizeof(netif->hwaddr) >= 8, return ERR_VAL;); in lowpan6_hwaddr_to_addr()
565 SMEMCPY(addr->addr, netif->hwaddr, 8); in lowpan6_hwaddr_to_addr()
568 SMEMCPY(addr->addr, netif->hwaddr, 3); in lowpan6_hwaddr_to_addr()
570 SMEMCPY(&addr->addr[5], &netif->hwaddr[3], 3); in lowpan6_hwaddr_to_addr()
594 const u8_t *hwaddr; in lowpan6_output() local
646 result = nd6_get_next_hop_addr_or_queue(netif, q, ip6addr, &hwaddr); in lowpan6_output()
653 if (hwaddr == NULL) { in lowpan6_output()
662 SMEMCPY(dest.addr, hwaddr, netif->hwaddr_len); in lowpan6_output()
H A Dbridgeif.c230 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()
/third_party/lwip/test/unit/dhcp/
H A Dtest_dhcp.c179 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()
269 const u8_t bootp_start[] = { 0x01, 0x01, 0x06, 0x00}; /* bootp request, eth, hwaddr len 6, 0 hops */ in lwip_tx_func()
273 check_pkt(p, 6, netif->hwaddr, 6); /* eth level src: unit mac */ in lwip_tx_func()
281 check_pkt(p, 70, netif->hwaddr, 6); /* mac addr inside bootp */ in lwip_tx_func()
305 check_pkt(p, 6, netif->hwaddr, in lwip_tx_func()
[all...]
/third_party/lwip/src/core/
H A Dnetif.c317 * setting the MAC address in struct netif.hwaddr
1638 * if == 0, use hwaddr directly as interface ID
1655 /* Assume hwaddr is a 48-bit IEEE 802 MAC. Convert to EUI-64 address. Complement Group bit. */
1656 ip_2_ip6(&netif->ip6_addr[0])->addr[2] = lwip_htonl((((u32_t)(netif->hwaddr[0] ^ 0x02)) << 24) |
1657 ((u32_t)(netif->hwaddr[1]) << 16) |
1658 ((u32_t)(netif->hwaddr[2]) << 8) |
1661 ((u32_t)(netif->hwaddr[3]) << 16) |
1662 ((u32_t)(netif->hwaddr[4]) << 8) |
1663 (netif->hwaddr[5]));
1665 /* Use hwaddr directl
[all...]
/third_party/NuttX/drivers/usbdev/gadget/
H A Df_ether.c175 err = memcpy_s(usb_netif->hwaddr, NETIF_MAX_HWADDR_LEN, addr, len); in eth_set_hwaddr()
294 (void)memcpy_s(usb_netif->hwaddr, NETIF_MAX_HWADDR_LEN, dev_addr, NETIF_MAX_HWADDR_LEN); in netdev_register()
/third_party/lwip/src/apps/snmp/
H A Dsnmp_mib2_interfaces.c186 value_len = sizeof(netif->hwaddr); in interfaces_Table_get_value()
187 MEMCPY(value, &netif->hwaddr, value_len); in interfaces_Table_get_value()
/third_party/lwip/doc/
H A DNO_SYS_SampleCode.c59 SMEMCPY(netif->hwaddr, your_mac_address_goes_here, ETH_HWADDR_LEN); in netif_init()
/third_party/FreeBSD/sys/dev/usb/net/
H A Dusb_eth_drv.c84 (void)memcpy_s(usb_netif->hwaddr, NETIF_MAX_HWADDR_LEN, enaddr, NETIF_MAX_HWADDR_LEN); in eth_drv_init()
H A Dif_axge.c680 (void)axge_read_mem(sc, AXGE_ACCESS_MAC, 6, AXGE_NIDR, ifp ->ac_if.hwaddr, 6); in axge_init()
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-sockets.c408 lws_plat_ifname_to_hwaddr(int fd, const char *ifname, uint8_t *hwaddr, int len) in lws_plat_ifname_to_hwaddr() argument
419 memcpy(hwaddr, &i.ifr_hwaddr.sa_data, 6); in lws_plat_ifname_to_hwaddr()
/third_party/libwebsockets/lib/plat/freertos/
H A Dfreertos-sockets.c287 lws_plat_ifname_to_hwaddr(int fd, const char *ifname, uint8_t *hwaddr, int len) in lws_plat_ifname_to_hwaddr() argument
/third_party/lwip/src/apps/netbiosns/
H A Dnetbiosns.c458 SMEMCPY(resp->unit_id, ip_current_input_netif()->hwaddr, sizeof(resp->unit_id)); in netbiosns_recv()
/third_party/libwebsockets/lib/core/
H A Dprivate-lib-core.h950 lws_plat_ifname_to_hwaddr(int fd, const char *ifname, uint8_t *hwaddr, int len);
/third_party/libwebsockets/lib/plat/windows/
H A Dwindows-sockets.c527 lws_plat_ifname_to_hwaddr(int fd, const char *ifname, uint8_t *hwaddr, int len) in lws_plat_ifname_to_hwaddr() argument
/third_party/lwip/src/include/lwip/
H A Dnetif.h262 * function for the device driver: hwaddr_len, hwaddr[], mtu, flags */
344 u8_t hwaddr[NETIF_MAX_HWADDR_LEN]; member
345 /** number of bytes used in hwaddr */
/third_party/lwip/src/netif/ppp/
H A Dpppoe.c736 MEMCPY(&ethhdr->src.addr, &sc->sc_ethif->hwaddr, sizeof(ethhdr->src.addr)); in pppoe_output()
1053 MEMCPY(&ethhdr->src.addr, &outgoing_if->hwaddr, sizeof(ethhdr->src.addr)); in pppoe_send_padt()

Completed in 33 milliseconds

12