Home
last modified time | relevance | path

Searched refs:hwlen (Results 1 – 18 of 18) sorted by relevance

/external/dhcpcd-6.8.2/
Darp.c68 ar.ar_hln = ifp->hwlen; in arp_request()
87 APPEND(ifp->hwaddr, ifp->hwlen); in arp_request()
90 APPEND(dest_hw_addr, ifp->hwlen); in arp_request()
92 ZERO(ifp->hwlen); in arp_request()
112 hwaddr_ntoa(amsg->sha, astate->iface->hwlen, in arp_report_conflicted()
172 if (ar.ar_hln == ifn->hwlen && in arp_packet()
173 memcmp(hw_s, ifn->hwaddr, ifn->hwlen) == 0) in arp_packet()
290 if (astate->dest_hwlen == ifp->hwlen) in arp_probe1()
Ddhcpcd.c425 if (ifp->hwlen > DHCP_CHADDR_LEN) in configure_interface1()
427 else if (ifp->hwlen == 0 && !(ifo->options & DHCPCD_CLIENTID)) in configure_interface1()
475 if (ifp->hwlen >= sizeof(ifo->iaid)) in configure_interface1()
477 ifp->hwaddr + ifp->hwlen - sizeof(ifo->iaid), in configure_interface1()
987 iff->hwlen = ifp->hwlen; in dhcpcd_handleinterface()
988 if (ifp->hwlen != 0) in dhcpcd_handleinterface()
989 memcpy(iff->hwaddr, ifp->hwaddr, iff->hwlen); in dhcpcd_handleinterface()
1016 const uint8_t *hwaddr, uint8_t hwlen) in dhcpcd_handlehwaddr() argument
1025 if (hwlen > sizeof(ifp->hwaddr)) { in dhcpcd_handlehwaddr()
1031 if (ifp->hwlen == hwlen && memcmp(ifp->hwaddr, hwaddr, hwlen) == 0) in dhcpcd_handlehwaddr()
[all …]
Dipv4ll.c223 if (sizeof(seed) > ifp->hwlen) { in ipv4ll_start()
225 memcpy(&seed, ifp->hwaddr, ifp->hwlen); in ipv4ll_start()
227 memcpy(&seed, ifp->hwaddr + ifp->hwlen - sizeof(seed), in ipv4ll_start()
Dcommon.c310 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen, char *buf, size_t buflen) in hwaddr_ntoa() argument
319 if (hwlen * 3 > buflen) { in hwaddr_ntoa()
325 for (i = 0; i < hwlen; i++) { in hwaddr_ntoa()
Dduid.c77 memcpy(p, ifp->hwaddr, ifp->hwlen); in duid_make()
78 p += ifp->hwlen; in duid_make()
Dif.c483 ifp->hwlen = sdl->sdl_alen; in if_discover()
487 memcpy(ifp->hwaddr, CLLADDR(sdl), ifp->hwlen); in if_discover()
492 ifp->hwlen = sll->sll_halen; in if_discover()
493 if (ifp->hwlen != 0) in if_discover()
494 memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen); in if_discover()
Ddhcp.c754 dhcp->hwlen = (uint8_t)ifp->hwlen; in make_message()
755 memcpy(&dhcp->chaddr, &ifp->hwaddr, ifp->hwlen); in make_message()
1218 if (state->server_info.gw_hwlen != ifp->hwlen) { in read_lease()
1222 state->server_info.gw_hwlen, ifp->hwlen); in read_lease()
1482 ifp->hwlen >= sizeof(xid)) in dhcp_xid()
1484 memcpy(&xid, (ifp->hwaddr + ifp->hwlen) - sizeof(xid), in dhcp_xid()
2569 memcpy(state->server_info.gw_hwaddr, gw_hwaddr, ifp->hwlen); in save_gateway_addr()
2570 state->server_info.gw_hwlen = ifp->hwlen; in save_gateway_addr()
2665 if (state->server_info.gw_hwlen != ifp->hwlen) in start_unicast_arp()
2745 hwaddr_ntoa(amsg->sha, astate->iface->hwlen, buf, sizeof(buf)); in dhcp_arp_conflicted()
[all …]
Ddhcpcd.h71 uint8_t hwlen; member
Dipv6.c391 ifp->hwaddr, ifp->hwlen, in ipv6_makestableprivate()
1128 if (ifp->hwlen != 6 && ifp->hwlen != 8) { in ipv6_addlinklocal()
1132 if (memcmp(ifp->hwaddr, allzero, ifp->hwlen) == 0 || in ipv6_addlinklocal()
1133 memcmp(ifp->hwaddr, allone, ifp->hwlen) == 0) in ipv6_addlinklocal()
1167 if (ifp->hwlen == 6) { in ipv6_addlinklocal()
1176 } else if (ifp->hwlen == 8) in ipv6_addlinklocal()
Ddhcp.h164 uint8_t hwlen; /* hardware address length */ member
Dif-linux.c1212 su.sll.sll_halen = (unsigned char)ifp->hwlen; in if_sendrawpacket()
1218 memcpy(&su.sll.sll_addr, dest_hw_addr, ifp->hwlen); in if_sendrawpacket()
1220 memset(&su.sll.sll_addr, 0xff, ifp->hwlen); in if_sendrawpacket()
Dipv6nd.c236 state->rslen = sizeof(*rs) + (size_t)ROUNDUP8(ifp->hwlen + 2); in ipv6nd_makersprobe()
247 nd->nd_opt_len = (uint8_t)((ROUNDUP8(ifp->hwlen + 2)) >> 3); in ipv6nd_makersprobe()
248 memcpy(nd + 1, ifp->hwaddr, ifp->hwlen); in ipv6nd_makersprobe()
Ddhcp6.c326 ifp->hwlen >= sizeof(xid)) in dhcp6_newxid()
328 memcpy(&xid, (ifp->hwaddr + ifp->hwlen) - sizeof(xid), in dhcp6_newxid()
/external/syslinux/core/lwip/src/include/netif/
Detharp.h118 PACK_STRUCT_FIELD(u8_t hwlen);
/external/syslinux/core/lwip/src/netif/
Dundiif.c125 PACK_STRUCT_FIELD(u8_t hwlen);
594 hdr->hwlen = netif->hwaddr_len; in undiarp_request()
1338 (hdr->hwlen != netif->hwaddr_len) || in undiarp_input()
1343 hdr->hwtype, hdr->hwlen, hdr->proto, hdr->protolen)); in undiarp_input()
Detharp.c703 (hdr->hwlen != ETHARP_HWADDR_LEN) ||
708 hdr->hwtype, hdr->hwlen, hdr->proto, hdr->protolen));
1173 hdr->hwlen = ETHARP_HWADDR_LEN;
/external/dnsmasq/src/
Ddnsmasq.h850 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr,
Drfc2131.c1310 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr, in extended_hwaddr() argument
1313 if (hwlen == 0 && clid && clid_len > 3) in extended_hwaddr()
1333 *len_out = hwlen; in extended_hwaddr()