Lines Matching refs:hardware
158 parse_hardware_param(FILE *cfile, struct hardware *hardware) in parse_hardware_param() argument
168 hardware->htype = HTYPE_ETHER; in parse_hardware_param()
171 hardware->htype = HTYPE_IEEE802; in parse_hardware_param()
174 hardware->htype = HTYPE_FDDI; in parse_hardware_param()
195 if (hlen > sizeof(hardware->haddr)) { in parse_hardware_param()
199 hardware->hlen = hlen; in parse_hardware_param()
200 memcpy((unsigned char *)&hardware->haddr[0], t, in parse_hardware_param()
201 hardware->hlen); in parse_hardware_param()
202 if (hlen < sizeof(hardware->haddr)) in parse_hardware_param()
203 memset(&hardware->haddr[hlen], 0, in parse_hardware_param()
204 sizeof(hardware->haddr) - hlen); in parse_hardware_param()