Home
last modified time | relevance | path

Searched refs:ifreq (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/tests/net/socket/offload_dispatcher/src/
Dmain.c690 struct ifreq ifreq = { in ZTEST() local
702 &ifreq, sizeof(ifreq)); in ZTEST()
725 struct ifreq ifreq = { in ZTEST() local
735 &ifreq, sizeof(ifreq)); in ZTEST()
760 struct ifreq ifreq = { in ZTEST() local
783 &ifreq, sizeof(ifreq)); in ZTEST()
807 struct ifreq ifreq = { in ZTEST() local
830 &ifreq, sizeof(ifreq)); in ZTEST()
/Zephyr-latest/tests/net/socket/misc/src/
Dmain.c174 struct ifreq ifreq = { 0 }; in test_so_bindtodevice() local
189 strcpy(ifreq.ifr_name, DEV2_NAME); in test_so_bindtodevice()
190 ret = zsock_setsockopt(sock_s, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
191 sizeof(ifreq)); in test_so_bindtodevice()
198 strcpy(ifreq.ifr_name, DEV1_NAME); in test_so_bindtodevice()
201 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
202 sizeof(ifreq)); in test_so_bindtodevice()
223 strcpy(ifreq.ifr_name, DEV2_NAME); in test_so_bindtodevice()
226 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice()
227 sizeof(ifreq)); in test_so_bindtodevice()
[all …]
/Zephyr-latest/subsys/net/lib/sockets/
Dsocket_dispatcher.c321 const struct ifreq *ifreq = optval; in sock_dispatch_setsockopt_vmeth() local
323 if ((ifreq == NULL) || (optlen != sizeof(*ifreq))) { in sock_dispatch_setsockopt_vmeth()
331 ret = net_if_get_by_name(ifreq->ifr_name); in sock_dispatch_setsockopt_vmeth()
345 dev = device_get_binding(ifreq->ifr_name); in sock_dispatch_setsockopt_vmeth()
Dsockets_inet.c2381 const struct ifreq *ifreq = optval; in zsock_setsockopt_ctx() local
2392 if ((optlen == 0) || (ifreq != NULL && in zsock_setsockopt_ctx()
2393 strlen(ifreq->ifr_name) == 0)) { in zsock_setsockopt_ctx()
2398 if ((ifreq == NULL) || (optlen != sizeof(*ifreq))) { in zsock_setsockopt_ctx()
2404 ret = net_if_get_by_name(ifreq->ifr_name); in zsock_setsockopt_ctx()
2418 dev = device_get_binding(ifreq->ifr_name); in zsock_setsockopt_ctx()
/Zephyr-latest/subsys/net/lib/ptp/
Dtransport.c32 struct ifreq ifreq = { 0 }; in transport_socket_open() local
55 cnt = net_if_get_name(iface, ifreq.ifr_name, INTERFACE_NAME_LEN); in transport_socket_open()
59 ifreq.ifr_name, in transport_socket_open()
60 sizeof(ifreq.ifr_name))) { in transport_socket_open()
/Zephyr-latest/doc/connectivity/networking/api/
Dsockets.rst253 struct ifreq ifreq = {
260 setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, sizeof(ifreq));
279 struct ifreq ifreq = {
286 setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, sizeof(ifreq));
/Zephyr-latest/drivers/ethernet/
Deth_native_posix_adapt.c43 struct ifreq ifr; in eth_iface_create()
/Zephyr-latest/tests/net/vlan/src/
Dmain.c899 struct ifreq ifreq = { 0 }; in ZTEST() local
935 strncpy(ifreq.ifr_name, ifname, sizeof(ifreq.ifr_name)); in ZTEST()
936 ret = zsock_setsockopt(client_sock, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in ZTEST()
937 sizeof(ifreq)); in ZTEST()
/Zephyr-latest/drivers/can/
Dcan_native_linux_adapt.c47 struct ifreq ifr; in linux_socketcan_iface_open()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_udp_uploader.c291 struct ifreq req; in zperf_udp_upload()
319 sizeof(struct ifreq)) != 0) { in zperf_udp_upload()
/Zephyr-latest/subsys/net/lib/dns/
Dresolve.c325 struct ifreq ifreq = { 0 }; in bind_to_iface() local
328 ret = net_if_get_name(net_if_get_by_index(if_index), ifreq.ifr_name, in bind_to_iface()
329 sizeof(ifreq.ifr_name)); in bind_to_iface()
336 &ifreq, sizeof(ifreq)); in bind_to_iface()
Dmdns_responder.c726 struct ifreq if_req; in init_listener()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c1545 struct ifreq ifreq = { 0 }; in net_dhcpv4_server_start() local
1600 ret = net_if_get_name(iface, ifreq.ifr_name, sizeof(ifreq.ifr_name)); in net_dhcpv4_server_start()
1613 ret = zsock_setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in net_dhcpv4_server_start()
1614 sizeof(ifreq)); in net_dhcpv4_server_start()
/Zephyr-latest/include/zephyr/net/
Dsocket.h819 struct ifreq { struct
/Zephyr-latest/tests/net/socket/udp/src/
Dmain.c1962 struct ifreq ifreq = { 0 }; in test_check_ttl() local
1980 strncpy(ifreq.ifr_name, ifname, sizeof(ifreq.ifr_name)); in test_check_ttl()
1981 ret = zsock_setsockopt(sock_c, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_check_ttl()
1982 sizeof(ifreq)); in test_check_ttl()