Home
last modified time | relevance | path

Searched refs:sockaddr_ll (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/tests/net/socket/af_packet/src/
Dmain.c118 struct sockaddr_ll addr; in bind_socket()
224 struct sockaddr_ll src; in ZTEST()
303 socklen_t addrlen = sizeof(struct sockaddr_ll); in ZTEST()
305 struct sockaddr_ll dst, src; in ZTEST()
335 (const struct sockaddr *)&dst, sizeof(struct sockaddr_ll)); in ZTEST()
364 (const struct sockaddr *)&dst, sizeof(struct sockaddr_ll)); in ZTEST()
400 socklen_t addrlen = sizeof(struct sockaddr_ll); in ZTEST()
402 struct sockaddr_ll dst, src; in ZTEST()
447 (const struct sockaddr *)&dst, sizeof(struct sockaddr_ll)); in ZTEST()
477 (const struct sockaddr *)&dst, sizeof(struct sockaddr_ll)); in ZTEST()
[all …]
/Zephyr-latest/samples/net/sockets/packet/src/
Dpacket.c61 struct sockaddr_ll dst = { 0 }; in start_socket()
80 sizeof(struct sockaddr_ll)); in start_socket()
153 struct sockaddr_ll dst = { 0 }; in send_packet_socket()
184 sizeof(struct sockaddr_ll)); in send_packet_socket()
/Zephyr-latest/tests/net/socket/af_packet_ipproto_raw/src/
Dmain.c119 struct sockaddr_ll dst = { 0 }; in ZTEST()
129 ret = zsock_bind(sock, (const struct sockaddr *)&dst, sizeof(struct sockaddr_ll)); in ZTEST()
134 (const struct sockaddr *)&dst, sizeof(struct sockaddr_ll)); in ZTEST()
/Zephyr-latest/samples/net/dsa/src/
Dmain.c71 struct sockaddr_ll dst; in start_slave_port_packet_socket()
84 sizeof(struct sockaddr_ll)); in start_slave_port_packet_socket()
Ddsa_lldp.c36 struct sockaddr_ll dst; in dsa_lldp_send()
87 sizeof(struct sockaddr_ll)); in dsa_lldp_send()
/Zephyr-latest/tests/net/ieee802154/l2/src/
Dieee802154_test.c397 struct sockaddr_ll socket_sll = { in set_up_recv_socket()
414 if (zsock_bind(fd, (const struct sockaddr *)&socket_sll, sizeof(struct sockaddr_ll))) { in set_up_recv_socket()
683 struct sockaddr_ll socket_sll = {.sll_ifindex = net_if_get_by_iface(net_iface), in test_dgram_packet_sending()
686 struct sockaddr_ll pkt_dst_sll = { in test_dgram_packet_sending()
718 if (zsock_bind(fd, (const struct sockaddr *)&socket_sll, sizeof(struct sockaddr_ll))) { in test_dgram_packet_sending()
724 sizeof(struct sockaddr_ll)) != sizeof(payload)) { in test_dgram_packet_sending()
781 struct sockaddr_ll recv_src_sll = {0}; in test_dgram_packet_reception()
894 if (recv_src_sll_len != sizeof(struct sockaddr_ll) || in test_dgram_packet_reception()
918 struct sockaddr_ll socket_sll = {0}; in test_raw_packet_sending()
937 if (zsock_bind(fd, (const struct sockaddr *)&socket_sll, sizeof(struct sockaddr_ll))) { in test_raw_packet_sending()
[all …]
/Zephyr-latest/samples/net/sockets/txtime/src/
Dmain.c274 struct sockaddr_ll *addr; in create_socket()
283 addr = (struct sockaddr_ll *)&local; in create_socket()
286 addrlen = sizeof(struct sockaddr_ll); in create_socket()
566 struct sockaddr_ll *addr = (struct sockaddr_ll *)&peer_data.peer; in main()
570 peer_data.peer_addr_len = sizeof(struct sockaddr_ll); in main()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_packet.c148 struct sockaddr_ll *addr, in zpacket_set_eth_pkttype()
172 struct sockaddr_ll addr = {0}; in zpacket_set_source_addr()
233 memcpy(src_addr, &addr, MIN(sizeof(struct sockaddr_ll), *addrlen)); in zpacket_set_source_addr()
234 *addrlen = sizeof(struct sockaddr_ll); in zpacket_set_source_addr()
DKconfig306 on the information in the sockaddr_ll destination address before
/Zephyr-latest/drivers/net/
Dnsos.h92 struct nsos_mid_sockaddr_ll sockaddr_ll; member
Dnsos_adapt.c336 struct sockaddr_ll *addr_ll = (struct sockaddr_ll *)*addr; in sockaddr_from_nsos_mid()
422 const struct sockaddr_ll *addr_ll = (const struct sockaddr_ll *)addr; in sockaddr_to_nsos_mid()
Dnsos_sockets.c487 const struct sockaddr_ll *addr_ll = in sockaddr_to_nsos_mid()
488 (const struct sockaddr_ll *)addr; in sockaddr_to_nsos_mid()
/Zephyr-latest/subsys/net/ip/
Dnet_context.c753 struct sockaddr_ll ll_addr; in bind_default()
1076 struct sockaddr_ll *ll_addr = (struct sockaddr_ll *)addr; in net_context_bind()
1079 if (addrlen < sizeof(struct sockaddr_ll)) { in net_context_bind()
2366 struct sockaddr_ll *ll_addr = (struct sockaddr_ll *)dst_addr; in context_sendto()
2373 ll_addr = (struct sockaddr_ll *) in context_sendto()
2375 addrlen = sizeof(struct sockaddr_ll); in context_sendto()
2383 if (addrlen < sizeof(struct sockaddr_ll)) { in context_sendto()
2410 memcpy((struct sockaddr_ll *)&context->remote, in context_sendto()
2411 ll_addr, sizeof(struct sockaddr_ll)); in context_sendto()
2940 struct sockaddr_ll addr; in net_context_recv()
Dconnection.c386 sizeof(struct sockaddr_ll)); in net_conn_register()
608 struct sockaddr_ll *local; in conn_raw_socket()
611 local = (struct sockaddr_ll *)&conn->local_addr; in conn_raw_socket()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154.c503 struct sockaddr_ll *dst_addr = (struct sockaddr_ll *)&context->remote; in ieee802154_send()
/Zephyr-latest/include/zephyr/net/
Dnet_ip.h197 struct sockaddr_ll { struct
370 #define NET_SOCKADDR_MAX_SIZE (sizeof(struct sockaddr_ll))
/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet.c736 struct sockaddr_ll *dst_addr; in ethernet_send()
742 dst_addr = (struct sockaddr_ll *)&context->remote; in ethernet_send()
/Zephyr-latest/tests/net/socket/udp/src/
Dmain.c1932 struct sockaddr_ll addr; in bind_socket()
1959 struct sockaddr_ll src; in test_check_ttl()
/Zephyr-latest/doc/releases/
Drelease-notes-3.2.rst2170 * :github:`48089` - AF_PACKET sockets not filling L2 header details in ``sockaddr_ll``