/freebsd/sys/dev/qlxgb/ |
H A D | qla_inline.h | 125 return (ha->hw.mac_addr); in qla_get_mac_addr() 147 ha->hw.mac_addr[5] = macp[0]; in qla_read_mac_addr() 148 ha->hw.mac_addr[4] = macp[1]; in qla_read_mac_addr() 152 ha->hw.mac_addr[3] = macp[0]; in qla_read_mac_addr() 153 ha->hw.mac_addr[2] = macp[1]; in qla_read_mac_addr() 154 ha->hw.mac_addr[1] = macp[2]; in qla_read_mac_addr() 155 ha->hw.mac_addr[0] = macp[3]; in qla_read_mac_addr() 159 ha->hw.mac_addr[5] = macp[0]; in qla_read_mac_addr() 160 ha->hw.mac_addr[4] = macp[1]; in qla_read_mac_addr() 161 ha->hw.mac_addr[3] = macp[2]; in qla_read_mac_addr() [all …]
|
/freebsd/sys/dev/ixl/ |
H A D | ixl_debug.h | 38 #define MAC_FORMAT_ARGS(mac_addr) \ argument 39 (mac_addr)[0], (mac_addr)[1], (mac_addr)[2], (mac_addr)[3], \ 40 (mac_addr)[4], (mac_addr)[5]
|
/freebsd/sys/dev/iavf/ |
H A D | iavf_debug.h | 43 #define MAC_FORMAT_ARGS(mac_addr) \ argument 44 (mac_addr)[0], (mac_addr)[1], (mac_addr)[2], (mac_addr)[3], \ 45 (mac_addr)[4], (mac_addr)[5]
|
/freebsd/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() 344 wpabuf_put_data(msg, wps->wps->dev.mac_addr, ETH_ALEN); in wps_build_cred_mac_addr() 445 wps_success_event(wps->wps, wps->peer_dev.mac_addr); in wps_build_wsc_done() 653 wps_pwd_auth_fail_event(wps->wps, 1, 1, wps->peer_dev.mac_addr); in wps_process_r_snonce1() 693 wps_pwd_auth_fail_event(wps->wps, 1, 2, wps->peer_dev.mac_addr); in wps_process_r_snonce2() 718 if (!ether_addr_equal(wps->cred.mac_addr, wps->wps->dev.mac_addr)) { in wps_process_cred_e() 721 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e() 722 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_cred_e() 817 if (!ether_addr_equal(cred.mac_addr, wps->wps->dev.mac_addr)) { in wps_process_ap_settings_e() 820 ")", MAC2STR(cred.mac_addr), in wps_process_ap_settings_e() [all …]
|
H A D | wps.h | 55 u8 mac_addr[ETH_ALEN]; member 86 u8 mac_addr[ETH_ALEN]; member 273 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr, 314 void (*reg_success_cb)(void *ctx, const u8 *mac_addr, 358 int (*lookup_pskfile_cb)(void *ctx, const u8 *mac_addr, const u8 **psk); 575 const u8 *mac_addr; member 591 const u8 *mac_addr; member 932 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
|
H A D | wps_i.h | 143 u16 config_error, u16 error_indication, const u8 *mac_addr); 144 void wps_success_event(struct wps_context *wps, const u8 *mac_addr); 146 const u8 *mac_addr); 219 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
|
/freebsd/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 | 95 static int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_new_psk_cb() argument 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() 131 hapd->new_psk_cb(hapd->new_psk_cb_ctx, mac_addr, p2p_dev_addr, in hostapd_wps_new_psk_cb() 151 fprintf(f, "wps=1 " MACSTR " %s\n", MAC2STR(mac_addr), hex); in hostapd_wps_new_psk_cb() 185 uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb() 202 t.sec, uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb() 229 static void hostapd_wps_reg_success_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_reg_success_cb() argument 239 MAC2STR(mac_addr), uuid); in hostapd_wps_reg_success_cb() [all …]
|
/freebsd/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 418 memcpy(mac_addr + 2, (uint8_t *)nl_addr_get_binary_addr(dst) + 12, 4); in get_mcast_mac_ipv6() 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 430 memcpy(mac_addr + 3, (uint8_t *)nl_addr_get_binary_addr(dst) + 13, 3); in get_link_local_mac_ipv6() [all …]
|
/freebsd/sys/dev/enic/ |
H A D | enic_res.c | 28 err = vnic_dev_get_mac_addr(enic->vdev, enic->mac_addr); in enic_get_vnic_config() 99 enic->mac_addr[0], enic->mac_addr[1], enic->mac_addr[2], in enic_get_vnic_config() 100 enic->mac_addr[3], enic->mac_addr[4], enic->mac_addr[5], in enic_get_vnic_config()
|
/freebsd/sys/dev/irdma/ |
H A D | fbsd_kcompat.c | 192 u8 *mac_addr; in irdma_add_ipv6_cb() local 198 mac_addr = if_getlladdr(addr->ifa_ifp); in irdma_add_ipv6_cb() 203 mac_addr[0], mac_addr[1], mac_addr[2], in irdma_add_ipv6_cb() 204 mac_addr[3], mac_addr[4], mac_addr[5]); in irdma_add_ipv6_cb() 206 irdma_manage_arp_cache(iwdev->rf, mac_addr, local_ipaddr6, in irdma_add_ipv6_cb() 230 uint8_t *mac_addr; in irdma_add_ipv4_cb() local 236 mac_addr = if_getlladdr(addr->ifa_ifp); in irdma_add_ipv4_cb() 244 mac_addr[0], mac_addr[1], mac_addr[2], in irdma_add_ipv4_cb() 245 mac_addr[3], mac_addr[4], mac_addr[5]); in irdma_add_ipv4_cb() 247 irdma_manage_arp_cache(iwdev->rf, mac_addr, ip_addr, in irdma_add_ipv4_cb() [all …]
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_def.h | 832 qlnxr_get_dmac(struct qlnxr_dev *dev, struct ib_ah_attr *ah_attr, u8 *mac_addr) in qlnxr_get_dmac() argument 841 memset(mac_addr, 0x00, ETH_ALEN); in qlnxr_get_dmac() 849 mac_addr[0] = guid[0] ^ 2; /* toggle the local/universal bit to local */ in qlnxr_get_dmac() 850 mac_addr[1] = guid[1]; in qlnxr_get_dmac() 851 mac_addr[2] = guid[2]; in qlnxr_get_dmac() 852 mac_addr[3] = guid[5]; in qlnxr_get_dmac() 853 mac_addr[4] = guid[6]; in qlnxr_get_dmac() 854 mac_addr[5] = guid[7]; in qlnxr_get_dmac() 856 memcpy(mac_addr, ah_attr->dmac, ETH_ALEN); in qlnxr_get_dmac()
|
/freebsd/usr.sbin/bhyve/ |
H A D | net_utils.c | 45 net_parsemac(const char *mac_str, uint8_t *mac_addr) in net_parsemac() argument 60 memcpy(mac_addr, ea->octet, ETHER_ADDR_LEN); in net_parsemac()
|
/freebsd/contrib/wpa/hostapd/ |
H A D | hostapd.eap_user_sqlite | 30 mac_addr TEXT PRIMARY KEY, 35 mac_addr TEXT PRIMARY KEY,
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | rtw8851b.h | 15 u8 mac_addr[ETH_ALEN]; member 19 u8 mac_addr[ETH_ALEN]; member
|
H A D | rtw8852c.h | 15 u8 mac_addr[ETH_ALEN]; member 19 u8 mac_addr[ETH_ALEN]; member
|
H A D | rtw8852a.h | 21 u8 mac_addr[ETH_ALEN]; member 25 u8 mac_addr[ETH_ALEN]; member
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_hw.c | 49 static int qls_config_mcast_mac_addr(qla_host_t *ha, uint8_t *mac_addr, 250 mac_upper = (ha->mac_addr[0] << 8) | ha->mac_addr[1]; in qls_config_unicast_mac_addr() 251 mac_lower = (ha->mac_addr[2] << 24) | (ha->mac_addr[3] << 16) | in qls_config_unicast_mac_addr() 252 (ha->mac_addr[4] << 8) | ha->mac_addr[5]; in qls_config_unicast_mac_addr() 301 qls_config_mcast_mac_addr(qla_host_t *ha, uint8_t *mac_addr, uint32_t add_mac, in qls_config_mcast_mac_addr() argument 316 mac_upper = (mac_addr[0] << 8) | mac_addr[1]; in qls_config_mcast_mac_addr() 317 mac_lower = (mac_addr[2] << 24) | (mac_addr[3] << 16) | in qls_config_mcast_mac_addr() 318 (mac_addr[4] << 8) | mac_addr[5]; in qls_config_mcast_mac_addr() 1867 bcopy(ha->flash.mac_addr0, ha->mac_addr, ETHER_ADDR_LEN); in qls_rd_nic_params() 1870 __func__, ha->mac_addr[0], ha->mac_addr[1], ha->mac_addr[2], in qls_rd_nic_params() [all …]
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | rtw8822b.h | 22 u8 mac_addr[ETH_ALEN]; /* 0x107 */ member 33 u8 mac_addr[ETH_ALEN]; /* 0xd0 */ member 70 u8 mac_addr[ETH_ALEN]; /* 0x11a */ member
|
H A D | mac80211.c | 110 .mac_addr = {.addr = 0x0610}, 117 .mac_addr = {.addr = 0x0700}, 124 .mac_addr = {.addr = 0x1620}, 131 .mac_addr = {.addr = 0x1630}, 138 .mac_addr = {.addr = 0x1640}, 205 ether_addr_copy(rtwvif->mac_addr, vif->addr); in rtw_ops_add_interface() 245 eth_zero_addr(rtwvif->mac_addr); in rtw_ops_remove_interface() 680 const u8 *mac_addr) in rtw_ops_sw_scan_start() 686 rtw_core_scan_start(rtwdev, rtwvif, mac_addr, false); in rtw_ops_sw_scan_start() 678 rtw_ops_sw_scan_start(struct ieee80211_hw * hw,struct ieee80211_vif * vif,const u8 * mac_addr) rtw_ops_sw_scan_start() argument
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | peer.c | 135 u8 *mac_addr, u16 ast_hash, u16 hw_peer_id) in ath12k_peer_map_event() argument 140 peer = ath12k_peer_find(ab, vdev_id, mac_addr); in ath12k_peer_map_event() 150 ether_addr_copy(peer->addr, mac_addr); in ath12k_peer_map_event() 156 vdev_id, mac_addr, peer_id); in ath12k_peer_map_event()
|
/freebsd/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
|