Home
last modified time | relevance | path

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

/external/dhcpcd/
Darp.c58 ar.ar_hln = iface->hwlen; in send_arp()
63 memcpy(p, iface->hwaddr, iface->hwlen); in send_arp()
64 p += iface->hwlen; in send_arp()
68 retval = iface->hwlen; in send_arp()
146 if (ar.ar_hln == iface->hwlen && in handle_arp_packet()
147 memcmp(hw_s, iface->hwaddr, iface->hwlen) == 0) in handle_arp_packet()
Dduid.c89 memcpy(p, iface->hwaddr, iface->hwlen); in get_duid()
90 p += iface->hwlen; in get_duid()
Ddhcpcd.c295 iface->hwlen >= sizeof(xid)) in dhcp_xid()
297 memcpy(&xid, (iface->hwaddr + iface->hwlen) - sizeof(xid), in dhcp_xid()
730 if (iface->hwlen <= sizeof(dhcp->chaddr) && in handle_dhcp_packet()
731 memcmp(dhcp->chaddr, iface->hwaddr, iface->hwlen)) in handle_dhcp_packet()
800 if (iface->hwlen > DHCP_CHADDR_LEN) in configure_interface1()
838 len = iface->hwlen + 1; in configure_interface1()
843 iface->hwlen); in configure_interface1()
849 else if (iface->hwlen) in configure_interface1()
851 hwaddr_ntoa(iface->hwaddr, iface->hwlen)); in configure_interface1()
1202 if (iface->hwlen == 0 && ifo->clientid[0] == '\0') { in start_interface()
[all …]
Dnet.c146 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen) in hwaddr_ntoa() argument
151 for (i = 0; i < hwlen && i < HWADDR_LEN; i++) { in hwaddr_ntoa()
474 ifp->hwlen = sdl->sdl_alen; in discover_interfaces()
478 memcpy(ifp->hwaddr, CLLADDR(sdl), ifp->hwlen); in discover_interfaces()
482 ifp->hwlen = sll->sll_halen; in discover_interfaces()
483 if (ifp->hwlen != 0) in discover_interfaces()
484 memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen); in discover_interfaces()
Dlpf.c150 su.sll.sll_halen = iface->hwlen; in send_raw_packet()
155 memset(&su.sll.sll_addr, 0xff, iface->hwlen); in send_raw_packet()
Ddhcpcd.h116 size_t hwlen; member
Ddhcpcd_test.cpp53 uint8_t hwlen; /* hardware address length */ member
Ddhcp.h142 uint8_t hwlen; /* hardware address length */ member
Dipv6rs.c172 ifp->rslen = sizeof(*rs) + ROUNDUP8(ifp->hwlen + 2); in ipv6rs_makeprobe()
183 nd->nd_opt_len = (ROUNDUP8(ifp->hwlen + 2)) >> 3; in ipv6rs_makeprobe()
184 memcpy(nd + 1, ifp->hwaddr, ifp->hwlen); in ipv6rs_makeprobe()
Ddhcp.c943 dhcp->hwlen = iface->hwlen; in make_message()
944 memcpy(&dhcp->chaddr, &iface->hwaddr, iface->hwlen); in make_message()
/external/dnsmasq/src/
Ddnsmasq.h848 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()