Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 7 of 7) sorted by relevance

/busybox-1.35.0/networking/udhcp/
Dd6_socket.c17 uint8_t *mac) in d6_read_interface() argument
31 memcpy(mac, sll->sll_addr, 6); in d6_read_interface()
33 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5] in d6_read_interface()
87 if (((uint32_t*)mac)[0] == 0) { in d6_read_interface()
89 ((uint32_t*)mac)[0] = rand(); in d6_read_interface()
90 ((uint16_t*)mac)[2] = rand(); in d6_read_interface()
91 mac[0] &= 0xfc; /* make sure it's not bcast */ in d6_read_interface()
Dsocket.c28 int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac) in udhcp_read_interface() argument
63 if (mac) { in udhcp_read_interface()
68 memcpy(mac, ifr->ifr_hwaddr.sa_data, 6); in udhcp_read_interface()
70 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in udhcp_read_interface()
Ddhcpd.c62 uint8_t mac[6]; member
70 uint8_t *mac, in add_static_lease() argument
86 memcpy(st_lease->mac, mac, 6); in add_static_lease()
100 st_lease->mac[0], st_lease->mac[1], st_lease->mac[2], in add_static_lease()
101 st_lease->mac[3], st_lease->mac[4], st_lease->mac[5], in add_static_lease()
109 static uint32_t get_static_nip_by_mac(void *mac) in get_static_nip_by_mac() argument
114 if (memcmp(st_lease->mac, mac, 6) == 0) in get_static_nip_by_mac()
225 static struct dyn_lease *find_lease_by_mac(const uint8_t *mac) in find_lease_by_mac() argument
230 if (memcmp(g_leases[i].lease_mac, mac, 6) == 0) in find_lease_by_mac()
Dd6_common.h152 uint8_t *mac
Dcommon.h373 int udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac) FAST_FUN…
/busybox-1.35.0/networking/
Dnameif.c98 struct ether_addr *mac; member
178 ch->mac = ether_aton_r(selector + (is_prefixed_with(selector, "mac=") ? 4 : 0), lmac); in nameif_parse_selector()
179 if (ch->mac == NULL) in nameif_parse_selector()
213 free(ch->mac); in delete_eth_table()
294 if (ch->mac && memcmp(ch->mac, ifr.ifr_hwaddr.sa_data, ETH_ALEN) != 0) in nameif_main()
Difplugd.c271 uint8_t mac[ETH_ALEN]; in detect_link_wlan() local
280 memcpy(mac, &iwrequest.u.ap_addr.sa_data, ETH_ALEN); in detect_link_wlan()
282 if (mac[0] == 0xFF || mac[0] == 0x44 || mac[0] == 0x00) { in detect_link_wlan()
284 if (mac[i] != mac[0]) in detect_link_wlan()