Lines Matching refs:optlen
1616 socklen_t optlen, bool do_get) in ipv4_multicast_if() argument
1625 if (optval == NULL || (optlen != sizeof(struct in_addr))) { in ipv4_multicast_if()
1657 if (optval == NULL || (optlen != sizeof(struct ip_mreqn) && in ipv4_multicast_if()
1658 optlen != sizeof(struct ip_mreq))) { in ipv4_multicast_if()
1663 if (optlen == sizeof(struct ip_mreqn)) { in ipv4_multicast_if()
1709 void *optval, socklen_t *optlen) in zsock_getsockopt_ctx() argument
1717 if (*optlen != sizeof(int)) { in zsock_getsockopt_ctx()
1730 if (*optlen != sizeof(type)) { in zsock_getsockopt_ctx()
1744 optval, optlen); in zsock_getsockopt_ctx()
1757 if (*optlen != sizeof(proto)) { in zsock_getsockopt_ctx()
1768 if (*optlen != sizeof(int)) { in zsock_getsockopt_ctx()
1784 optval, optlen); in zsock_getsockopt_ctx()
1798 optval, optlen); in zsock_getsockopt_ctx()
1812 optval, optlen); in zsock_getsockopt_ctx()
1826 optval, optlen); in zsock_getsockopt_ctx()
1841 optval, optlen); in zsock_getsockopt_ctx()
1856 optval, optlen); in zsock_getsockopt_ctx()
1874 ret = net_tcp_get_option(ctx, TCP_OPT_NODELAY, optval, optlen); in zsock_getsockopt_ctx()
1885 optval, optlen); in zsock_getsockopt_ctx()
1906 optlen); in zsock_getsockopt_ctx()
1919 optval, optlen); in zsock_getsockopt_ctx()
1934 return ipv4_multicast_if(ctx, optval, *optlen, true); in zsock_getsockopt_ctx()
1941 optval, optlen); in zsock_getsockopt_ctx()
1952 optval, optlen); in zsock_getsockopt_ctx()
1967 optval, optlen); in zsock_getsockopt_ctx()
1986 optval, optlen); in zsock_getsockopt_ctx()
2002 optlen); in zsock_getsockopt_ctx()
2018 optlen); in zsock_getsockopt_ctx()
2034 optlen); in zsock_getsockopt_ctx()
2048 optval, optlen); in zsock_getsockopt_ctx()
2065 optval, optlen); in zsock_getsockopt_ctx()
2077 optval, optlen); in zsock_getsockopt_ctx()
2094 socklen_t optlen, bool do_join) in ipv4_multicast_group() argument
2100 if (optval == NULL || optlen != sizeof(struct ip_mreqn)) { in ipv4_multicast_group()
2150 socklen_t optlen, bool do_join) in ipv6_multicast_group() argument
2156 if (optval == NULL || optlen != sizeof(struct ipv6_mreq)) { in ipv6_multicast_group()
2202 const void *optval, socklen_t optlen) in zsock_setsockopt_ctx() argument
2213 optval, optlen); in zsock_setsockopt_ctx()
2228 optval, optlen); in zsock_setsockopt_ctx()
2243 optval, optlen); in zsock_setsockopt_ctx()
2258 optval, optlen); in zsock_setsockopt_ctx()
2273 optval, optlen); in zsock_setsockopt_ctx()
2289 if (optlen != sizeof(struct zsock_timeval)) { in zsock_setsockopt_ctx()
2321 if (optlen != sizeof(struct zsock_timeval)) { in zsock_setsockopt_ctx()
2351 optval, optlen); in zsock_setsockopt_ctx()
2366 optval, optlen); in zsock_setsockopt_ctx()
2392 if ((optlen == 0) || (ifreq != NULL && in zsock_setsockopt_ctx()
2398 if ((ifreq == NULL) || (optlen != sizeof(*ifreq))) { in zsock_setsockopt_ctx()
2445 optval, optlen); in zsock_setsockopt_ctx()
2460 optval, optlen); in zsock_setsockopt_ctx()
2479 TCP_OPT_NODELAY, optval, optlen); in zsock_setsockopt_ctx()
2490 optval, optlen); in zsock_setsockopt_ctx()
2510 optlen); in zsock_setsockopt_ctx()
2527 optlen); in zsock_setsockopt_ctx()
2540 return ipv4_multicast_if(ctx, optval, optlen, false); in zsock_setsockopt_ctx()
2547 optval, optlen); in zsock_setsockopt_ctx()
2557 optval, optlen); in zsock_setsockopt_ctx()
2568 optlen, true); in zsock_setsockopt_ctx()
2576 optlen, false); in zsock_setsockopt_ctx()
2585 optval, optlen); in zsock_setsockopt_ctx()
2604 optval, optlen); in zsock_setsockopt_ctx()
2620 optlen); in zsock_setsockopt_ctx()
2635 optlen); in zsock_setsockopt_ctx()
2651 optlen); in zsock_setsockopt_ctx()
2667 optlen); in zsock_setsockopt_ctx()
2681 optval, optlen); in zsock_setsockopt_ctx()
2692 optval, optlen); in zsock_setsockopt_ctx()
2703 optval, optlen); in zsock_setsockopt_ctx()
2714 optlen, true); in zsock_setsockopt_ctx()
2722 optlen, false); in zsock_setsockopt_ctx()
2986 void *optval, socklen_t *optlen) in sock_getsockopt_vmeth() argument
2988 return zsock_getsockopt_ctx(obj, level, optname, optval, optlen); in sock_getsockopt_vmeth()
2992 const void *optval, socklen_t optlen) in sock_setsockopt_vmeth() argument
2994 return zsock_setsockopt_ctx(obj, level, optname, optval, optlen); in sock_setsockopt_vmeth()