Lines Matching refs:macaddr
161 static int parse_macaddr(uint8_t *macaddr, const char *p) in parse_macaddr() argument
171 macaddr[3] = (offset & 0xFF0000) >> 16; in parse_macaddr()
172 macaddr[4] = (offset & 0xFF00) >> 8; in parse_macaddr()
173 macaddr[5] = offset & 0xFF; in parse_macaddr()
177 macaddr[i] = strtol(p, (char **)&p, 16); in parse_macaddr()
304 void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]) in qemu_format_nic_info_str()
309 macaddr[0], macaddr[1], macaddr[2], in qemu_format_nic_info_str()
310 macaddr[3], macaddr[4], macaddr[5]); in qemu_format_nic_info_str()
2109 uint8_t *macaddr; in net_client_init() local
2123 macaddr = nd->macaddr; in net_client_init()
2124 macaddr[0] = 0x52; in net_client_init()
2125 macaddr[1] = 0x54; in net_client_init()
2126 macaddr[2] = 0x00; in net_client_init()
2127 macaddr[3] = 0x12; in net_client_init()
2128 macaddr[4] = 0x34; in net_client_init()
2129 macaddr[5] = 0x56 + idx; in net_client_init()
2132 if (parse_macaddr(macaddr, buf) < 0) { in net_client_init()