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

/external/dhcpcd-6.8.2/
H A Darp.c68 ar.ar_hln = ifp->hwlen;
87 APPEND(ifp->hwaddr, ifp->hwlen);
90 APPEND(dest_hw_addr, ifp->hwlen);
92 ZERO(ifp->hwlen);
112 hwaddr_ntoa(amsg->sha, astate->iface->hwlen,
172 if (ar.ar_hln == ifn->hwlen &&
173 memcmp(hw_s, ifn->hwaddr, ifn->hwlen) == 0)
290 if (astate->dest_hwlen == ifp->hwlen)
H A Dduid.c77 memcpy(p, ifp->hwaddr, ifp->hwlen);
78 p += ifp->hwlen;
H A Dcommon.c310 hwaddr_ntoa(const unsigned char *hwaddr, size_t hwlen, char *buf, size_t buflen) argument
319 if (hwlen * 3 > buflen) {
325 for (i = 0; i < hwlen; i++) {
H A Dipv4ll.c223 if (sizeof(seed) > ifp->hwlen) {
225 memcpy(&seed, ifp->hwaddr, ifp->hwlen);
227 memcpy(&seed, ifp->hwaddr + ifp->hwlen - sizeof(seed),
H A Ddhcpcd.c425 if (ifp->hwlen > DHCP_CHADDR_LEN)
427 else if (ifp->hwlen == 0 && !(ifo->options & DHCPCD_CLIENTID))
475 if (ifp->hwlen >= sizeof(ifo->iaid))
477 ifp->hwaddr + ifp->hwlen - sizeof(ifo->iaid),
987 iff->hwlen = ifp->hwlen;
988 if (ifp->hwlen != 0)
989 memcpy(iff->hwaddr, ifp->hwaddr, iff->hwlen);
1016 const uint8_t *hwaddr, uint8_t hwlen)
1025 if (hwlen > sizeo
1015 dhcpcd_handlehwaddr(struct dhcpcd_ctx *ctx, const char *ifname, const uint8_t *hwaddr, uint8_t hwlen) argument
[all...]
H A Ddhcpcd.h71 uint8_t hwlen; member in struct:interface
H A Dif.c483 ifp->hwlen = sdl->sdl_alen;
487 memcpy(ifp->hwaddr, CLLADDR(sdl), ifp->hwlen);
492 ifp->hwlen = sll->sll_halen;
493 if (ifp->hwlen != 0)
494 memcpy(ifp->hwaddr, sll->sll_addr, ifp->hwlen);
H A Ddhcp.c754 dhcp->hwlen = (uint8_t)ifp->hwlen;
755 memcpy(&dhcp->chaddr, &ifp->hwaddr, ifp->hwlen);
1218 if (state->server_info.gw_hwlen != ifp->hwlen) {
1222 state->server_info.gw_hwlen, ifp->hwlen);
1482 ifp->hwlen >= sizeof(xid))
1484 memcpy(&xid, (ifp->hwaddr + ifp->hwlen) - sizeof(xid),
2569 memcpy(state->server_info.gw_hwaddr, gw_hwaddr, ifp->hwlen);
2570 state->server_info.gw_hwlen = ifp->hwlen;
2665 if (state->server_info.gw_hwlen != ifp->hwlen)
[all...]
H A Ddhcp.h164 uint8_t hwlen; /* hardware address length */ member in struct:dhcp_message
H A Dipv6.c391 ifp->hwaddr, ifp->hwlen,
1128 if (ifp->hwlen != 6 && ifp->hwlen != 8) {
1132 if (memcmp(ifp->hwaddr, allzero, ifp->hwlen) == 0 ||
1133 memcmp(ifp->hwaddr, allone, ifp->hwlen) == 0)
1167 if (ifp->hwlen == 6) {
1176 } else if (ifp->hwlen == 8)
H A Dif-linux.c1212 su.sll.sll_halen = (unsigned char)ifp->hwlen;
1218 memcpy(&su.sll.sll_addr, dest_hw_addr, ifp->hwlen);
1220 memset(&su.sll.sll_addr, 0xff, ifp->hwlen);
H A Dipv6nd.c236 state->rslen = sizeof(*rs) + (size_t)ROUNDUP8(ifp->hwlen + 2);
247 nd->nd_opt_len = (uint8_t)((ROUNDUP8(ifp->hwlen + 2)) >> 3);
248 memcpy(nd + 1, ifp->hwaddr, ifp->hwlen);
H A Ddhcp6.c326 ifp->hwlen >= sizeof(xid))
328 memcpy(&xid, (ifp->hwaddr + ifp->hwlen) - sizeof(xid),
/external/syslinux/core/lwip/src/include/netif/
H A Detharp.h118 PACK_STRUCT_FIELD(u8_t hwlen);
/external/syslinux/core/lwip/src/netif/
H A Dundiif.c125 PACK_STRUCT_FIELD(u8_t hwlen);
594 hdr->hwlen = netif->hwaddr_len;
1338 (hdr->hwlen != netif->hwaddr_len) ||
1342 ("undiarp_input: packet dropped, wrong hw type, hwlen, proto, or protolen (%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F")\n",
1343 hdr->hwtype, hdr->hwlen, hdr->proto, hdr->protolen));
H A Detharp.c703 (hdr->hwlen != ETHARP_HWADDR_LEN) ||
707 ("etharp_arp_input: packet dropped, wrong hw type, hwlen, proto, protolen or ethernet type (%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F")\n",
708 hdr->hwtype, hdr->hwlen, hdr->proto, hdr->protolen));
1172 /* set hwlen and protolen */
1173 hdr->hwlen = ETHARP_HWADDR_LEN;
/external/dnsmasq/src/
H A Drfc2131.c1310 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr, argument
1313 if (hwlen == 0 && clid && clid_len > 3)
1333 *len_out = hwlen;
H A Ddnsmasq.h850 unsigned char *extended_hwaddr(int hwtype, int hwlen, unsigned char *hwaddr,

Completed in 363 milliseconds