/Zephyr-latest/tests/net/socket/offload_dispatcher/src/ |
D | main.c | 690 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/ |
D | main.c | 174 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/ |
D | socket_dispatcher.c | 321 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()
|
D | sockets_inet.c | 2381 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/ |
D | transport.c | 32 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/ |
D | sockets.rst | 253 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/ |
D | eth_native_posix_adapt.c | 43 struct ifreq ifr; in eth_iface_create()
|
/Zephyr-latest/tests/net/vlan/src/ |
D | main.c | 899 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/ |
D | can_native_linux_adapt.c | 47 struct ifreq ifr; in linux_socketcan_iface_open()
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_udp_uploader.c | 291 struct ifreq req; in zperf_udp_upload() 319 sizeof(struct ifreq)) != 0) { in zperf_udp_upload()
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | resolve.c | 325 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()
|
D | mdns_responder.c | 726 struct ifreq if_req; in init_listener()
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4_server.c | 1545 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/ |
D | socket.h | 819 struct ifreq { struct
|
/Zephyr-latest/tests/net/socket/udp/src/ |
D | main.c | 1962 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()
|