Lines Matching defs:macaddr
194 static int parse_macaddr(uint8_t *macaddr, const char *p)
204 macaddr[3] = (offset & 0xFF0000) >> 16;
205 macaddr[4] = (offset & 0xFF00) >> 8;
206 macaddr[5] = offset & 0xFF;
210 macaddr[i] = strtol(p, (char **)&p, 16);
337 void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6])
340 "model=%s,macaddr=%02x:%02x:%02x:%02x:%02x:%02x",
342 macaddr[0], macaddr[1], macaddr[2],
343 macaddr[3], macaddr[4], macaddr[5]);
2210 "vlan", "name", "macaddr", "model", NULL
2213 uint8_t *macaddr;
2227 macaddr = nd->macaddr;
2228 macaddr[0] = 0x52;
2229 macaddr[1] = 0x54;
2230 macaddr[2] = 0x00;
2231 macaddr[3] = 0x12;
2232 macaddr[4] = 0x34;
2233 macaddr[5] = 0x56 + idx;
2235 if (get_param_value(buf, sizeof(buf), "macaddr", p)) {
2236 if (parse_macaddr(macaddr, buf) < 0) {