Home
last modified time | relevance | path

Searched refs:mac_str (Results 1 – 9 of 9) sorted by relevance

/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-network/network/static-mac-addr/
H A Dmac-check59 local mac_str=$mac_str:${mac[$i]}
61 mac_str=${mac_str:1:17}
62 echo "$mac_str" 2>/dev/null
/openbmc/google-misc/subprojects/ncsid/src/
H A Dnet_config.cpp60 char mac_str[MAC_FORMAT_LENGTH]; in format_mac() local
61 snprintf(mac_str, sizeof(mac_str), MAC_FORMAT, mac.octet[0], mac.octet[1], in format_mac()
64 return std::string{mac_str}; in format_mac()
/openbmc/u-boot/cmd/
H A Dpxe.c316 char mac_str[21]; in pxe_mac_path() local
319 err = format_mac_pxe(mac_str, sizeof(mac_str)); in pxe_mac_path()
324 return get_pxelinux_path(cmdtp, mac_str, pxefile_addr_r); in pxe_mac_path()
623 char mac_str[29] = ""; in label_boot() local
675 strcpy(mac_str, " BOOTIF="); in label_boot()
676 err = format_mac_pxe(mac_str + 8, sizeof(mac_str) - 8); in label_boot()
678 mac_str[0] = '\0'; in label_boot()
687 strlen(ip_str) + strlen(mac_str) + 1 > sizeof(bootargs)) { in label_boot()
690 strlen(ip_str), strlen(mac_str), in label_boot()
698 strcat(bootargs, mac_str); in label_boot()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfib_lookup.c153 static void mac_str(char *b, const __u8 *mac) in mac_str() function
214 mac_str(expected, tests[i].dmac); in test_fib_lookup()
215 mac_str(actual, fib_params->dmac); in test_fib_lookup()
/openbmc/inarp/
H A Dinarp.c155 static char mac_str[ETH_ALEN * (sizeof("00:") - 1)]; in eth_mac_to_str() local
158 snprintf(mac_str, sizeof(mac_str), in eth_mac_to_str()
163 return mac_str; in eth_mac_to_str()
/openbmc/linux/drivers/usb/atm/
H A Dspeedtch.c652 unsigned char mac_str[13]; in speedtch_atm_start() local
658 if (usb_string(usb_dev, usb_dev->descriptor.iSerialNumber, mac_str, sizeof(mac_str)) == 12) { in speedtch_atm_start()
660 atm_dev->esi[i] = (hex_to_bin(mac_str[i * 2]) << 4) + in speedtch_atm_start()
661 hex_to_bin(mac_str[i * 2 + 1]); in speedtch_atm_start()
H A Dueagle-atm.c2417 unsigned char mac_str[2 * ETH_ALEN + 1]; in uea_getesi() local
2420 (sc->usb_dev, sc->usb_dev->descriptor.iSerialNumber, mac_str, in uea_getesi()
2421 sizeof(mac_str)) != 2 * ETH_ALEN) in uea_getesi()
2425 esi[i] = hex_to_bin(mac_str[2 * i]) * 16 + in uea_getesi()
2426 hex_to_bin(mac_str[2 * i + 1]); in uea_getesi()
/openbmc/linux/arch/xtensa/platforms/iss/
H A Dnetwork.c230 char *dev_name = NULL, *mac_str = NULL, *rem = NULL; in tuntap_probe() local
240 rem = split_if_spec(init + 1, &mac_str, &dev_name, NULL); in tuntap_probe()
260 setup_etheraddr(dev, mac_str); in tuntap_probe()
/openbmc/linux/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py180 mac_str, _, mask_str = data.partition('/')
182 if not mac_str:
183 mac_str = mask_str = "00:00:00:00:00:00"
187 return to_bytes(mac_str), to_bytes(mask_str)