Lines Matching refs:macaddr
194 static int parse_macaddr(uint8_t *macaddr, const char *p) in parse_macaddr() argument
204 macaddr[3] = (offset & 0xFF0000) >> 16; in parse_macaddr()
205 macaddr[4] = (offset & 0xFF00) >> 8; in parse_macaddr()
206 macaddr[5] = offset & 0xFF; in parse_macaddr()
210 macaddr[i] = strtol(p, (char **)&p, 16); in parse_macaddr()
337 void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]) in qemu_format_nic_info_str()
342 macaddr[0], macaddr[1], macaddr[2], in qemu_format_nic_info_str()
343 macaddr[3], macaddr[4], macaddr[5]); in qemu_format_nic_info_str()
2213 uint8_t *macaddr; in net_client_init() local
2227 macaddr = nd->macaddr; in net_client_init()
2228 macaddr[0] = 0x52; in net_client_init()
2229 macaddr[1] = 0x54; in net_client_init()
2230 macaddr[2] = 0x00; in net_client_init()
2231 macaddr[3] = 0x12; in net_client_init()
2232 macaddr[4] = 0x34; in net_client_init()
2233 macaddr[5] = 0x56 + idx; in net_client_init()
2236 if (parse_macaddr(macaddr, buf) < 0) { in net_client_init()