Home
last modified time | relevance | path

Searched refs:macaddr (Results 1 – 21 of 21) sorted by relevance

/external/qemu/slirp-android/
Dbootp.c37 uint8_t macaddr[6]; member
54 const uint8_t *macaddr) in get_new_addr() argument
61 if (!bc->allocated || !memcmp(macaddr, bc->macaddr, 6)) in get_new_addr()
75 const uint8_t *macaddr) in request_addr() argument
84 if (!bc->allocated || !memcmp(macaddr, bc->macaddr, 6)) { in request_addr()
92 static BOOTPClient *find_addr(SockAddress *paddr, const uint8_t *macaddr) in find_addr() argument
98 if (!memcmp(macaddr, bootp_clients[i].macaddr, 6)) in find_addr()
208 memcpy(bc->macaddr, client_ethaddr, 6); in bootp_reply()
213 memcpy(bc->macaddr, client_ethaddr, 6); in bootp_reply()
/external/qemu/slirp/
Dbootp.c36 uint8_t macaddr[6]; member
53 const uint8_t *macaddr) in get_new_addr() argument
60 if (!bc->allocated || !memcmp(macaddr, bc->macaddr, 6)) in get_new_addr()
72 const uint8_t *macaddr) in request_addr() argument
81 if (!bc->allocated || !memcmp(macaddr, bc->macaddr, 6)) { in request_addr()
89 static BOOTPClient *find_addr(struct in_addr *paddr, const uint8_t *macaddr) in find_addr() argument
95 if (!memcmp(macaddr, bootp_clients[i].macaddr, 6)) in find_addr()
203 memcpy(bc->macaddr, client_ethaddr, 6); in bootp_reply()
208 memcpy(bc->macaddr, client_ethaddr, 6); in bootp_reply()
/external/grub/netboot/
Dfa311.c129 unsigned char macaddr[6]; in fa311_probe() local
145 macaddr[i*2] = (eedata << 1) + (prev_eedata >> 15); in fa311_probe()
146 macaddr[i*2+1] = eedata >> 7; in fa311_probe()
151 mactest |= macaddr[i]; in fa311_probe()
155 nic->node_addr[i] = macaddr[i]; in fa311_probe()
175 writew(macaddr[i] + (macaddr[i+1] << 8), in fa311_probe()
/external/qemu/
Dnet.h73 void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]);
87 uint8_t macaddr[6]; member
139 void qdev_get_macaddr(DeviceState *dev, uint8_t *macaddr);
Dnet.c161 static int parse_macaddr(uint8_t *macaddr, const char *p) in parse_macaddr() argument
171 macaddr[3] = (offset & 0xFF0000) >> 16; in parse_macaddr()
172 macaddr[4] = (offset & 0xFF00) >> 8; in parse_macaddr()
173 macaddr[5] = offset & 0xFF; in parse_macaddr()
177 macaddr[i] = strtol(p, (char **)&p, 16); in parse_macaddr()
304 void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]) in qemu_format_nic_info_str()
309 macaddr[0], macaddr[1], macaddr[2], in qemu_format_nic_info_str()
310 macaddr[3], macaddr[4], macaddr[5]); in qemu_format_nic_info_str()
2109 uint8_t *macaddr; in net_client_init() local
2123 macaddr = nd->macaddr; in net_client_init()
[all …]
Dnet-android.c194 static int parse_macaddr(uint8_t *macaddr, const char *p) in parse_macaddr() argument
204 macaddr[3] = (offset & 0xFF0000) >> 16; in parse_macaddr()
205 macaddr[4] = (offset & 0xFF00) >> 8; in parse_macaddr()
206 macaddr[5] = offset & 0xFF; in parse_macaddr()
210 macaddr[i] = strtol(p, (char **)&p, 16); in parse_macaddr()
337 void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]) in qemu_format_nic_info_str()
342 macaddr[0], macaddr[1], macaddr[2], in qemu_format_nic_info_str()
343 macaddr[3], macaddr[4], macaddr[5]); in qemu_format_nic_info_str()
2213 uint8_t *macaddr; in net_client_init() local
2227 macaddr = nd->macaddr; in net_client_init()
[all …]
Dqemu-options.hx736 "-net nic[,vlan=n][,macaddr=addr][,model=type][,name=str]\n"
770 @item -net nic[,vlan=@var{n}][,macaddr=@var{addr}][,model=@var{type}][,name=@var{name}]
824 qemu linux.img -net nic,macaddr=52:54:00:12:34:56 \
828 qemu linux.img -net nic,macaddr=52:54:00:12:34:57 \
852 qemu linux.img -net nic,macaddr=52:54:00:12:34:56 \
855 qemu linux.img -net nic,macaddr=52:54:00:12:34:57 \
858 qemu linux.img -net nic,macaddr=52:54:00:12:34:58 \
866 qemu linux.img -net nic,macaddr=52:54:00:12:34:56 \
Dsavevm.c136 len = announce_self_create(buf, nd_table[i].macaddr); in qemu_announce_self_once()
Dqemu-monitor.hx511 …hot_add, "pci_addr=auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type…
/external/qemu/hw/
Dne2000.c146 uint8_t macaddr[6]; member
155 memcpy(s->mem, s->macaddr, 6); in ne2000_reset()
758 memcpy(s->macaddr, nd->macaddr, 6); in isa_ne2000_init()
766 qemu_format_nic_info_str(s->vc, s->macaddr); in isa_ne2000_init()
824 qdev_get_macaddr(&d->dev.qdev, s->macaddr); in pci_ne2000_init()
830 qemu_format_nic_info_str(s->vc, s->macaddr); in pci_ne2000_init()
Dsmc91c111.c47 uint8_t macaddr[6]; member
554 return s->macaddr[offset - 4]; in smc91c111_readb()
788 qdev_get_macaddr(&dev->qdev, s->macaddr); in smc91c111_init1()
795 qemu_format_nic_info_str(s->vc, s->macaddr); in smc91c111_init1()
Dqdev.c384 void qdev_get_macaddr(DeviceState *dev, uint8_t *macaddr) in qdev_get_macaddr() argument
386 memcpy(macaddr, dev->nd->macaddr, 6); in qdev_get_macaddr()
/external/wpa_supplicant_8/src/ap/
Dap_config.h21 typedef u8 macaddr[ETH_ALEN]; typedef
24 macaddr addr;
331 macaddr bssid;
Dap_config.c184 return os_memcmp(a, b, sizeof(macaddr)); in hostapd_mac_comp()
190 macaddr empty = { 0 }; in hostapd_mac_comp_empty()
191 return os_memcmp(a, empty, sizeof(macaddr)); in hostapd_mac_comp_empty()
Dieee802_11_auth.c33 macaddr addr;
48 macaddr addr;
/external/wpa_supplicant_8/src/wps/
Dwps_upnp_web.c507 u8 macaddr[ETH_ALEN]; in web_process_put_wlan_response() local
542 if (hwaddr_aton(val, macaddr)) { in web_process_put_wlan_response()
555 if (hwaddr_aton2(val, macaddr) > 0) { in web_process_put_wlan_response()
563 val, MAC2STR(macaddr)); in web_process_put_wlan_response()
585 macaddr, msg, type) in web_process_put_wlan_response()
/external/wpa_supplicant_8/src/drivers/
Ddriver_atheros.c591 memcpy(stats.is_u.macaddr, addr, IEEE80211_ADDR_LEN); in atheros_read_sta_driver_data()
1853 memcpy(mgmt_frm->macaddr, (u8 *)mgmt->da, IEEE80211_ADDR_LEN); in atheros_send_mgmt()
1876 os_memcpy(&req.macaddr[0], addr, IEEE80211_ADDR_LEN); in atheros_add_tspec()
1898 os_memcpy(&req.macaddr[0], addr, IEEE80211_ADDR_LEN); in atheros_add_sta_node()
Ddriver_nl80211.c696 u8 *macaddr; member
715 if (tb[NL80211_ATTR_MAC] && info->macaddr) in netdev_info_handler()
716 os_memcpy(info->macaddr, nla_data(tb[NL80211_ATTR_MAC]), in netdev_info_handler()
728 .macaddr = NULL, in nl80211_get_wiphy_index()
754 .macaddr = NULL, in nl80211_get_ifmode()
780 .macaddr = bss->addr, in nl80211_get_macaddr()
9030 u8 macaddr[ETH_ALEN]; member
9047 os_memcpy(wi->macaddr, nla_data(tb[NL80211_ATTR_MAC]), in nl80211_wdev_handler()
9092 if (!is_zero_ether_addr(p2pdev_info.macaddr)) in wpa_driver_nl80211_if_add()
9093 os_memcpy(if_addr, p2pdev_info.macaddr, ETH_ALEN); in wpa_driver_nl80211_if_add()
Ddriver_madwifi.c553 memcpy(stats.is_u.macaddr, addr, IEEE80211_ADDR_LEN); in madwifi_read_sta_driver_data()
Ddriver_bsd.c745 memcpy(stats.is_u.macaddr, addr, IEEE80211_ADDR_LEN); in bsd_read_sta_driver_data()
/external/wpa_supplicant_8/hostapd/
Dconfig_file.c111 return os_memcmp(aa->addr, bb->addr, sizeof(macaddr)); in hostapd_acl_comp()