Lines Matching refs:hwlen
295 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()
1332 ifn->hwlen = ifp->hwlen; in handle_interface()
1333 if (ifp->hwlen != 0) in handle_interface()
1334 memcpy(ifn->hwaddr, ifp->hwaddr, ifn->hwlen); in handle_interface()
1348 handle_hwaddr(const char *ifname, unsigned char *hwaddr, size_t hwlen) in handle_hwaddr() argument
1354 if (strcmp(ifp->name, ifname) == 0 && ifp->hwlen <= hwlen) { in handle_hwaddr()
1366 memcpy(ifp->hwaddr, hwaddr, hwlen); in handle_hwaddr()
1367 ifp->hwlen = hwlen; in handle_hwaddr()
1373 hwaddr_ntoa(ifp->hwaddr, ifp->hwlen)); in handle_hwaddr()