/Zephyr-latest/samples/net/dsa/src/ |
D | dsa_lldp.c | 49 memcpy(eth_hdr->src.addr, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send() 64 memcpy(p, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send() 70 memcpy(p, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | iface.c | 263 if (net_if_get_link_addr(iface) && in iface_cb() 264 net_if_get_link_addr(iface)->addr) { in iface_cb() 266 net_sprint_ll_addr(net_if_get_link_addr(iface)->addr, in iface_cb() 267 net_if_get_link_addr(iface)->len)); in iface_cb() 621 net_sprint_ll_addr(net_if_get_link_addr(iface)->addr, in cmd_net_set_mac() 622 net_if_get_link_addr(iface)->len)); in cmd_net_set_mac()
|
/Zephyr-latest/subsys/net/l2/ethernet/gptp/ |
D | gptp.c | 74 default_ds->clk_id[0] = net_if_get_link_addr(iface)->addr[0]; in gptp_compute_clock_identity() 75 default_ds->clk_id[1] = net_if_get_link_addr(iface)->addr[1]; in gptp_compute_clock_identity() 76 default_ds->clk_id[2] = net_if_get_link_addr(iface)->addr[2]; in gptp_compute_clock_identity() 79 default_ds->clk_id[5] = net_if_get_link_addr(iface)->addr[3]; in gptp_compute_clock_identity() 80 default_ds->clk_id[6] = net_if_get_link_addr(iface)->addr[4]; in gptp_compute_clock_identity() 81 default_ds->clk_id[7] = net_if_get_link_addr(iface)->addr[5]; in gptp_compute_clock_identity()
|
D | gptp_messages.c | 174 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(iface)->addr; in setup_gptp_frame_debug() 175 net_pkt_lladdr_src(pkt)->len = net_if_get_link_addr(iface)->len; in setup_gptp_frame_debug()
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | arp.c | 303 (uint8_t *)net_if_get_link_addr(entry->iface)->addr; in arp_prepare() 308 (uint8_t *)net_if_get_link_addr(iface)->addr; in arp_prepare() 453 (uint8_t *)net_if_get_link_addr(entry->iface)->addr; in net_arp_prepare() 512 memcpy(&hdr->src_hwaddr.addr, net_if_get_link_addr(iface)->addr, in arp_gratuitous_send() 518 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(iface)->addr; in arp_gratuitous_send() 742 memcpy(&hdr->src_hwaddr.addr, net_if_get_link_addr(iface)->addr, in arp_prepare_reply() 748 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(iface)->addr; in arp_prepare_reply() 798 net_if_get_link_addr(net_pkt_iface(pkt))->addr, in net_arp_input()
|
D | ethernet_mgmt.c | 106 net_if_get_link_addr(iface)); in ethernet_set_config()
|
D | ethernet.c | 382 !net_linkaddr_cmp(net_if_get_link_addr(iface), lladdr)) { in ethernet_recv() 387 net_sprint_ll_addr(net_if_get_link_addr(iface)->addr, in ethernet_recv()
|
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/ |
D | main.c | 53 mac = net_if_get_link_addr(iface); in log_mac_addr()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_packet.c | 160 } else if (!net_linkaddr_cmp(net_if_get_link_addr(iface), lladdr)) { in zpacket_set_eth_pkttype() 192 if (net_if_get_link_addr(iface)->type == NET_LINK_ETHERNET) { in zpacket_set_source_addr() 197 } else if (net_if_get_link_addr(iface)->type == NET_LINK_ETHERNET) { in zpacket_set_source_addr()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_uart_pipe.c | 76 (net_if_get_link_addr(upipe->iface)->len != in received_dest_addr_matched() 87 if (net_if_get_link_addr(upipe->iface)->len != in received_dest_addr_matched()
|
D | ieee802154_b91.c | 93 if ((net_if_get_link_addr(data.iface)->len != B91_IEEE_ADDRESS_SIZE) || in b91_run_filter()
|
/Zephyr-latest/tests/net/hostname/src/ |
D | main.c | 370 zassert_mem_equal(mac, net_if_get_link_addr(iface1)->addr, in ZTEST() 371 net_if_get_link_addr(iface1)->len, ""); in ZTEST()
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv4_acd.c | 288 ll_addr = net_if_get_link_addr(addr_iface); in net_ipv4_acd_input() 330 struct net_linkaddr *ll_addr = net_if_get_link_addr(iface); in net_ipv4_acd_input()
|
D | ipv6_pe.c | 250 memcpy(buf.mac, net_if_get_link_addr(iface)->addr, in gen_temporary_iid() 251 MIN(sizeof(buf.mac), net_if_get_link_addr(iface)->len)); in gen_temporary_iid()
|
D | ipv6_nbr.c | 1060 uint8_t total_len = net_if_get_link_addr(iface)->len + in get_llao_len() 1154 if (!set_llao(pkt, net_if_get_link_addr(iface), in net_ipv6_send_na() 2029 if (!set_llao(pkt, net_if_get_link_addr(iface), in net_ipv6_send_ns() 2141 if (!set_llao(pkt, net_if_get_link_addr(iface), in net_ipv6_send_rs() 2293 net_if_get_link_addr(iface)); in handle_prefix_autonomous()
|
/Zephyr-latest/tests/net/iface/src/ |
D | main.c | 962 net_ipv6_addr_create_iid(&iid_addr, net_if_get_link_addr(iface4)); in ZTEST() 973 net_ipv6_addr_create_iid(&unicast_addr, net_if_get_link_addr(iface4)); in ZTEST() 1343 struct net_linkaddr *lladdr = net_if_get_link_addr(iface); in generate_iid() 1349 lladdr = net_if_get_link_addr(eth_iface); in generate_iid() 1361 net_if_get_link_addr(eth_iface)); in generate_iid()
|
/Zephyr-latest/tests/net/arp/src/ |
D | main.c | 191 memcpy(ð->src.addr, net_if_get_link_addr(iface)->addr, in prepare_arp_reply() 277 memcpy(&hdr->src.addr, net_if_get_link_addr(iface)->addr, in setup_eth_header() 368 net_pkt_lladdr_src(pkt)->addr = (uint8_t *)net_if_get_link_addr(iface); in ZTEST()
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4.c | 307 msg->hlen = net_if_get_link_addr(iface)->len; in dhcpv4_create_message() 320 memcpy(msg->chaddr, net_if_get_link_addr(iface)->addr, in dhcpv4_create_message() 321 net_if_get_link_addr(iface)->len); in dhcpv4_create_message() 1513 !memcmp(msg->chaddr, net_if_get_link_addr(iface)->addr, in net_dhcpv4_input() 1514 net_if_get_link_addr(iface)->len))) { in net_dhcpv4_input() 1521 if (msg->hlen != net_if_get_link_addr(iface)->len) { in net_dhcpv4_input()
|
/Zephyr-latest/tests/net/ieee802154/l2/src/ |
D | ieee802154_test.c | 745 net_pkt_lladdr_src(current_pkt)->addr = net_if_get_link_addr(net_iface)->addr; in test_dgram_packet_sending() 746 net_pkt_lladdr_src(current_pkt)->len = net_if_get_link_addr(net_iface)->len; in test_dgram_packet_sending() 1244 ieee_addr_hexdump(net_if_get_link_addr(net_iface)->addr, 8); in initialize_test_environment()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_if.h | 1103 static inline struct net_linkaddr *net_if_get_link_addr(struct net_if *iface) in net_if_get_link_addr() function 1197 net_if_get_link_addr(iface)->addr = addr; in net_if_set_link_addr_unlocked() 1198 net_if_get_link_addr(iface)->len = len; in net_if_set_link_addr_unlocked() 1199 net_if_get_link_addr(iface)->type = type; in net_if_set_link_addr_unlocked()
|
/Zephyr-latest/subsys/net/l2/ethernet/lldp/ |
D | lldp.c | 144 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(lldp->iface)->addr; in lldp_send()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | transport.c | 346 return net_if_get_link_addr(port->iface); in ptp_transport_physical_addr()
|
/Zephyr-latest/tests/net/lib/mdns_responder/src/ |
D | main.c | 228 net_ipv6_nbr_add(iface1, &sender_ll_addr, net_if_get_link_addr(iface1), false, in test_setup()
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | ipv6cp.c | 36 linkaddr = net_if_get_link_addr(ctx->iface); in ipv6cp_add_iid()
|
/Zephyr-latest/subsys/net/l2/openthread/ |
D | openthread.c | 535 ll_addr = net_if_get_link_addr(iface); in openthread_init()
|