Home
last modified time | relevance | path

Searched refs:net_if_get_link_addr (Results 1 – 25 of 41) sorted by relevance

12

/Zephyr-latest/samples/net/dsa/src/
Ddsa_lldp.c49 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/
Diface.c263 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/
Dgptp.c74 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()
Dgptp_messages.c174 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/
Darp.c303 (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()
Dethernet_mgmt.c106 net_if_get_link_addr(iface)); in ethernet_set_config()
Dethernet.c382 !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/
Dmain.c53 mac = net_if_get_link_addr(iface); in log_mac_addr()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_packet.c160 } 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/
Dieee802154_uart_pipe.c76 (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()
Dieee802154_b91.c93 if ((net_if_get_link_addr(data.iface)->len != B91_IEEE_ADDRESS_SIZE) || in b91_run_filter()
/Zephyr-latest/tests/net/hostname/src/
Dmain.c370 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/
Dipv4_acd.c288 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()
Dipv6_pe.c250 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()
Dipv6_nbr.c1060 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/
Dmain.c962 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/
Dmain.c191 memcpy(&eth->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/
Ddhcpv4.c307 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/
Dieee802154_test.c745 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/
Dnet_if.h1103 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/
Dlldp.c144 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(lldp->iface)->addr; in lldp_send()
/Zephyr-latest/subsys/net/lib/ptp/
Dtransport.c346 return net_if_get_link_addr(port->iface); in ptp_transport_physical_addr()
/Zephyr-latest/tests/net/lib/mdns_responder/src/
Dmain.c228 net_ipv6_nbr_add(iface1, &sender_ll_addr, net_if_get_link_addr(iface1), false, in test_setup()
/Zephyr-latest/subsys/net/l2/ppp/
Dipv6cp.c36 linkaddr = net_if_get_link_addr(ctx->iface); in ipv6cp_add_iid()
/Zephyr-latest/subsys/net/l2/openthread/
Dopenthread.c535 ll_addr = net_if_get_link_addr(iface); in openthread_init()

12