Home
last modified time | relevance | path

Searched refs:macstr (Results 1 – 4 of 4) sorted by relevance

/freebsd-12.1/usr.sbin/setfmac/
H A Dsetfmac.c315 macstr = strtok(NULL, " \t"); in add_spec_line()
317 macstr = modestr; in add_spec_line()
398 char *regerrorstr, *macstr; in apply_specs() local
462 macstr = malloc(size); in apply_specs()
463 if (macstr == NULL) in apply_specs()
465 *macstr = '\0'; in apply_specs()
469 if (*macstr != '\0') in apply_specs()
470 strcat(macstr, ","); in apply_specs()
474 if (mac_from_text(&mac, macstr)) in apply_specs()
480 free(macstr); in apply_specs()
[all …]
/freebsd-12.1/sys/mips/ingenic/
H A Djz4780_efuse.c143 char macstr[sizeof("xx:xx:xx:xx:xx:xx")]; in jz4780_efuse_update_kenv() local
150 snprintf(macstr, sizeof(macstr), "%6D", in jz4780_efuse_update_kenv()
152 kern_setenv("hint.dme.0.macaddr", macstr); in jz4780_efuse_update_kenv()
/freebsd-12.1/sys/mips/atheros/
H A Dar71xx_machdep.c210 char macstr[32]; in ar71xx_platform_set_mac_hint() local
220 snprintf(macstr, 32, "%6D", lclmac, ":"); in ar71xx_platform_set_mac_hint()
223 printf(" %s => %s\n", devstr, macstr); in ar71xx_platform_set_mac_hint()
226 if (kern_setenv(devstr, macstr) != 0) { in ar71xx_platform_set_mac_hint()
230 macstr); in ar71xx_platform_set_mac_hint()
/freebsd-12.1/sys/dev/xen/netfront/
H A Dnetfront.c329 char *s, *e, *macstr; in xen_net_read_mac() local
333 error = xs_read(XST_NIL, path, "mac", NULL, (void **) &macstr); in xen_net_read_mac()
351 error = xs_read(XST_NIL, path, "mac", NULL, (void **) &macstr); in xen_net_read_mac()
358 s = macstr; in xen_net_read_mac()
362 free(macstr, M_XENBUS); in xen_net_read_mac()
367 free(macstr, M_XENBUS); in xen_net_read_mac()