| /freebsd-13.1/sys/dev/qlxgb/ |
| H A D | qla_inline.h | 127 return (ha->hw.mac_addr); in qla_get_mac_addr() 149 ha->hw.mac_addr[5] = macp[0]; in qla_read_mac_addr() 150 ha->hw.mac_addr[4] = macp[1]; in qla_read_mac_addr() 154 ha->hw.mac_addr[3] = macp[0]; in qla_read_mac_addr() 155 ha->hw.mac_addr[2] = macp[1]; in qla_read_mac_addr() 156 ha->hw.mac_addr[1] = macp[2]; in qla_read_mac_addr() 157 ha->hw.mac_addr[0] = macp[3]; in qla_read_mac_addr() 161 ha->hw.mac_addr[5] = macp[0]; in qla_read_mac_addr() 162 ha->hw.mac_addr[4] = macp[1]; in qla_read_mac_addr() 163 ha->hw.mac_addr[3] = macp[2]; in qla_read_mac_addr() [all …]
|
| /freebsd-13.1/sys/dev/ixl/ |
| H A D | ixl_debug.h | 39 #define MAC_FORMAT_ARGS(mac_addr) \ argument 40 (mac_addr)[0], (mac_addr)[1], (mac_addr)[2], (mac_addr)[3], \ 41 (mac_addr)[4], (mac_addr)[5]
|
| /freebsd-13.1/sys/dev/iavf/ |
| H A D | iavf_debug.h | 44 #define MAC_FORMAT_ARGS(mac_addr) \ argument 45 (mac_addr)[0], (mac_addr)[1], (mac_addr)[2], (mac_addr)[3], \ 46 (mac_addr)[4], (mac_addr)[5]
|
| /freebsd-13.1/sys/mips/nlm/dev/net/ |
| H A D | sgmii.c | 183 int port_type, uint8_t *mac_addr) in nlm_nae_setup_mac_addr_sgmii() argument 187 (mac_addr[5] << 24) | in nlm_nae_setup_mac_addr_sgmii() 188 (mac_addr[4] << 16) | in nlm_nae_setup_mac_addr_sgmii() 189 (mac_addr[3] << 8) | in nlm_nae_setup_mac_addr_sgmii() 190 mac_addr[2]); in nlm_nae_setup_mac_addr_sgmii() 194 (mac_addr[1] << 24) | in nlm_nae_setup_mac_addr_sgmii() 195 (mac_addr[0] << 16)); in nlm_nae_setup_mac_addr_sgmii()
|
| H A D | xaui.c | 156 int port_type, unsigned char *mac_addr) in nlm_nae_setup_mac_addr_xaui() argument 160 (mac_addr[5] << 24) | in nlm_nae_setup_mac_addr_xaui() 161 (mac_addr[4] << 16) | in nlm_nae_setup_mac_addr_xaui() 162 (mac_addr[3] << 8) | in nlm_nae_setup_mac_addr_xaui() 163 mac_addr[2]); in nlm_nae_setup_mac_addr_xaui() 167 (mac_addr[1] << 24) | in nlm_nae_setup_mac_addr_xaui() 168 (mac_addr[0] << 16)); in nlm_nae_setup_mac_addr_xaui()
|
| /freebsd-13.1/contrib/wpa/src/wps/ |
| H A D | wps_attr_process.c | 196 const u8 *mac_addr) in wps_process_cred_mac_addr() argument 198 if (mac_addr == NULL) { in wps_process_cred_mac_addr() 204 wpa_printf(MSG_DEBUG, "WPS: MAC Address " MACSTR, MAC2STR(mac_addr)); in wps_process_cred_mac_addr() 205 os_memcpy(cred->mac_addr, mac_addr, ETH_ALEN); in wps_process_cred_mac_addr() 260 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_cred() 279 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_ap_settings()
|
| H A D | wps_enrollee.c | 324 wps->peer_dev.mac_addr, in wps_build_cred_network_key() 445 wps_success_event(wps->wps, wps->peer_dev.mac_addr); in wps_build_wsc_done() 718 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e() 722 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e() 723 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_cred_e() 818 if (os_memcmp(cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_ap_settings_e() 822 ")", MAC2STR(cred.mac_addr), in wps_process_ap_settings_e() 823 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_ap_settings_e() 1320 wps->peer_dev.mac_addr); in wps_process_wsc_msg() 1329 wps->peer_dev.mac_addr); in wps_process_wsc_msg() [all …]
|
| H A D | wps.h | 55 u8 mac_addr[ETH_ALEN]; member 86 u8 mac_addr[ETH_ALEN]; member 268 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr, 309 void (*reg_success_cb)(void *ctx, const u8 *mac_addr, 353 int (*lookup_pskfile_cb)(void *ctx, const u8 *mac_addr, const u8 **psk); 570 const u8 *mac_addr; member 586 const u8 *mac_addr; member 927 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
|
| H A D | wps_i.h | 142 u16 config_error, u16 error_indication, const u8 *mac_addr); 143 void wps_success_event(struct wps_context *wps, const u8 *mac_addr); 145 const u8 *mac_addr); 218 int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr,
|
| H A D | wps_common.c | 273 u16 config_error, u16 error_indication, const u8 *mac_addr) in wps_fail_event() argument 284 os_memcpy(data.fail.peer_macaddr, mac_addr, ETH_ALEN); in wps_fail_event() 289 void wps_success_event(struct wps_context *wps, const u8 *mac_addr) in wps_success_event() argument 297 os_memcpy(data.success.peer_macaddr, mac_addr, ETH_ALEN); in wps_success_event() 303 const u8 *mac_addr) in wps_pwd_auth_fail_event() argument 313 os_memcpy(data.pwd_auth_fail.peer_macaddr, mac_addr, ETH_ALEN); in wps_pwd_auth_fail_event() 376 wps_build_mac_addr(plain, wps->dev.mac_addr) || in wps_get_oob_cred() 500 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid) in uuid_gen_mac_addr() argument 515 addr[1] = mac_addr; in uuid_gen_mac_addr()
|
| H A D | wps_er.h | 45 u8 mac_addr[ETH_ALEN]; member 80 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ member
|
| H A D | wps_registrar.c | 154 void (*reg_success_cb)(void *ctx, const u8 *mac_addr, 309 os_memcpy(dst->mac_addr, src->mac_addr, ETH_ALEN); in wps_device_clone_data() 330 d = wps_device_get(reg, dev->mac_addr); in wps_device_store() 1594 wps_build_mac_addr(msg, cred->mac_addr)) in wps_build_credential() 2378 if (mac_addr == NULL) { in wps_process_mac_addr() 2384 MAC2STR(mac_addr)); in wps_process_mac_addr() 2385 os_memcpy(wps->mac_addr_e, mac_addr, ETH_ALEN); in wps_process_mac_addr() 2386 os_memcpy(wps->peer_dev.mac_addr, mac_addr, ETH_ALEN); in wps_process_mac_addr() 2657 wps_process_mac_addr(wps, attr->mac_addr) || in wps_process_m1() 3060 if (wps->wps->wps_upnp && attr.mac_addr) { in wps_process_wsc_msg() [all …]
|
| /freebsd-13.1/contrib/wpa/src/ap/ |
| H A D | iapp.c | 78 u8 mac_addr[ETH_ALEN]; member 99 u8 mac_addr[ETH_ALEN]; member 110 u8 mac_addr[ETH_ALEN]; member 127 u8 mac_addr[ETH_ALEN]; member 140 u8 mac_addr[ETH_ALEN]; member 174 static void iapp_send_add(struct iapp_data *iapp, u8 *mac_addr, u16 seq_num) in iapp_send_add() argument 193 os_memcpy(add->mac_addr, mac_addr, ETH_ALEN); in iapp_send_add() 273 sta = ap_get_sta(iapp->hapd, add->mac_addr); in iapp_process_add_notify() 276 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, in iapp_process_add_notify() 290 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, in iapp_process_add_notify()
|
| H A D | wps_hostapd.c | 106 MAC2STR(mac_addr)); in hostapd_wps_new_psk_cb() 111 MAC2STR(mac_addr), MAC2STR(p2p_dev_addr)); in hostapd_wps_new_psk_cb() 125 os_memcpy(p->addr, mac_addr, ETH_ALEN); in hostapd_wps_new_psk_cb() 185 uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb() 239 MAC2STR(mac_addr), uuid); in hostapd_wps_reg_success_cb() 242 mac_addr, uuid_e); in hostapd_wps_reg_success_cb() 290 if (mac_addr && !dev_psk && in hostapd_wps_lookup_pskfile_cb() 481 MAC2STR(cred->mac_addr)); in hapd_wps_cred_cb() 1694 const u8 *mac_addr, const struct wpabuf *msg, in hostapd_rx_req_put_wlan_response() argument 1702 MACSTR, ev_type, MAC2STR(mac_addr)); in hostapd_rx_req_put_wlan_response() [all …]
|
| /freebsd-13.1/contrib/ofed/libibverbs/ |
| H A D | neigh.c | 400 uint8_t mac_addr[6] = {0x01, 0x00, 0x5E}; in get_mcast_mac_ipv4() local 403 mac_addr[5] = addr & 0xFF; in get_mcast_mac_ipv4() 405 mac_addr[4] = addr & 0xFF; in get_mcast_mac_ipv4() 407 mac_addr[3] = addr & 0x7F; in get_mcast_mac_ipv4() 409 *ll_addr = nl_addr_build(AF_LLC, mac_addr, sizeof(mac_addr)); in get_mcast_mac_ipv4() 416 uint8_t mac_addr[6] = {0x33, 0x33}; in get_mcast_mac_ipv6() local 420 *ll_addr = nl_addr_build(AF_LLC, mac_addr, sizeof(mac_addr)); in get_mcast_mac_ipv6() 428 uint8_t mac_addr[6]; in get_link_local_mac_ipv6() local 431 memcpy(mac_addr, (uint8_t *)nl_addr_get_binary_addr(dst) + 8, 3); in get_link_local_mac_ipv6() 432 mac_addr[0] ^= 2; in get_link_local_mac_ipv6() [all …]
|
| /freebsd-13.1/sys/dev/qlnx/qlnxr/ |
| H A D | qlnxr_def.h | 865 qlnxr_get_dmac(struct qlnxr_dev *dev, struct ib_ah_attr *ah_attr, u8 *mac_addr) in qlnxr_get_dmac() argument 874 memset(mac_addr, 0x00, ETH_ALEN); in qlnxr_get_dmac() 882 mac_addr[0] = guid[0] ^ 2; /* toggle the local/universal bit to local */ in qlnxr_get_dmac() 883 mac_addr[1] = guid[1]; in qlnxr_get_dmac() 884 mac_addr[2] = guid[2]; in qlnxr_get_dmac() 885 mac_addr[3] = guid[5]; in qlnxr_get_dmac() 886 mac_addr[4] = guid[6]; in qlnxr_get_dmac() 887 mac_addr[5] = guid[7]; in qlnxr_get_dmac() 889 memcpy(mac_addr, ah_attr->dmac, ETH_ALEN); in qlnxr_get_dmac()
|
| /freebsd-13.1/usr.sbin/bhyve/ |
| H A D | net_utils.c | 48 net_parsemac(const char *mac_str, uint8_t *mac_addr) in net_parsemac() argument 63 memcpy(mac_addr, ea->octet, ETHER_ADDR_LEN); in net_parsemac()
|
| H A D | net_utils.h | 37 int net_parsemac(const char *mac_str, uint8_t *mac_addr);
|
| /freebsd-13.1/contrib/wpa/hostapd/ |
| H A D | hostapd.eap_user_sqlite | 30 mac_addr TEXT PRIMARY KEY, 35 mac_addr TEXT PRIMARY KEY,
|
| /freebsd-13.1/sys/dev/qlxge/ |
| H A D | qls_hw.c | 51 static int qls_config_mcast_mac_addr(qla_host_t *ha, uint8_t *mac_addr, 252 mac_upper = (ha->mac_addr[0] << 8) | ha->mac_addr[1]; in qls_config_unicast_mac_addr() 253 mac_lower = (ha->mac_addr[2] << 24) | (ha->mac_addr[3] << 16) | in qls_config_unicast_mac_addr() 254 (ha->mac_addr[4] << 8) | ha->mac_addr[5]; in qls_config_unicast_mac_addr() 303 qls_config_mcast_mac_addr(qla_host_t *ha, uint8_t *mac_addr, uint32_t add_mac, in qls_config_mcast_mac_addr() argument 318 mac_upper = (mac_addr[0] << 8) | mac_addr[1]; in qls_config_mcast_mac_addr() 319 mac_lower = (mac_addr[2] << 24) | (mac_addr[3] << 16) | in qls_config_mcast_mac_addr() 320 (mac_addr[4] << 8) | mac_addr[5]; in qls_config_mcast_mac_addr() 1868 bcopy(ha->flash.mac_addr0, ha->mac_addr, ETHER_ADDR_LEN); in qls_rd_nic_params() 1871 __func__, ha->mac_addr[0], ha->mac_addr[1], ha->mac_addr[2], in qls_rd_nic_params() [all …]
|
| /freebsd-13.1/sys/contrib/ncsw/inc/flib/ |
| H A D | fsl_fman_memac.h | 184 struct mac_addr { struct 193 struct mac_addr mac_addr0; /* 0x00C-0x010 MAC_ADDR_0...1 */ 210 struct mac_addr mac_addr[MEMAC_NUM_OF_PADDRS]; /* 0x80-0x0B4 mac padr */ member
|
| /freebsd-13.1/tools/tools/ath/ath_ee_9300_print/ |
| H A D | main.c | 76 ee->mac_addr[0], in eeprom_9300_hdr_print() 77 ee->mac_addr[1], in eeprom_9300_hdr_print() 78 ee->mac_addr[2], in eeprom_9300_hdr_print() 79 ee->mac_addr[3], in eeprom_9300_hdr_print() 80 ee->mac_addr[4], in eeprom_9300_hdr_print() 81 ee->mac_addr[5]); in eeprom_9300_hdr_print()
|
| /freebsd-13.1/contrib/hyperv/tools/ |
| H A D | hv_kvp_daemon.c | 575 char *mac_addr = NULL; in kvp_if_name_to_mac() local 589 mac_addr = strdup(ether_ntoa((struct ether_addr *)(LLADDR(sdl)))); in kvp_if_name_to_mac() 596 return (mac_addr); in kvp_if_name_to_mac() 975 char *mac_addr; in kvp_set_ip_info() local 993 mac_addr = kvp_if_name_to_mac(if_name); in kvp_set_ip_info() 994 if (mac_addr == NULL) { in kvp_set_ip_info() 999 error = kvp_write_file(file, "HWADDR", "", mac_addr); in kvp_set_ip_info() 1049 free(mac_addr); in kvp_set_ip_info() 1064 free(mac_addr); in kvp_set_ip_info()
|
| /freebsd-13.1/sys/contrib/ncsw/Peripherals/FM/MAC/ |
| H A D | fman_memac.c | 73 iowrite32be(0x0, ®s->mac_addr[paddr_num - 1].mac_addr_l); in fman_memac_clear_addr_in_paddr() 74 iowrite32be(0x0, ®s->mac_addr[paddr_num - 1].mac_addr_u); in fman_memac_clear_addr_in_paddr() 94 iowrite32be(tmp0, ®s->mac_addr[paddr_num-1].mac_addr_l); in fman_memac_add_addr_in_paddr() 95 iowrite32be(tmp1, ®s->mac_addr[paddr_num-1].mac_addr_u); in fman_memac_add_addr_in_paddr()
|
| /freebsd-13.1/sys/dev/e1000/ |
| H A D | e1000_82543.h | 52 u32 frame_len, u8 *mac_addr,
|