Lines Matching refs:optval
1615 static int ipv4_multicast_if(struct net_context *ctx, const void *optval, in ipv4_multicast_if() argument
1625 if (optval == NULL || (optlen != sizeof(struct in_addr))) { in ipv4_multicast_if()
1639 ((struct in_addr *)optval)->s_addr = INADDR_ANY; in ipv4_multicast_if()
1649 net_ipaddr_copy((struct in_addr *)optval, &ifaddr->address.in_addr); in ipv4_multicast_if()
1657 if (optval == NULL || (optlen != sizeof(struct ip_mreqn) && in ipv4_multicast_if()
1664 struct ip_mreqn *mreqn = (struct ip_mreqn *)optval; in ipv4_multicast_if()
1679 struct ip_mreq *mreq = (struct ip_mreq *)optval; in ipv4_multicast_if()
1709 void *optval, socklen_t *optlen) in zsock_getsockopt_ctx() argument
1722 *(int *)optval = POINTER_TO_INT(ctx->user_data); in zsock_getsockopt_ctx()
1735 *(int *)optval = type; in zsock_getsockopt_ctx()
1744 optval, optlen); in zsock_getsockopt_ctx()
1762 *(int *)optval = proto; in zsock_getsockopt_ctx()
1773 *(int *)optval = net_context_get_family(ctx); 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()
1905 optval, 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()
2001 optval, in zsock_getsockopt_ctx()
2017 optval, in zsock_getsockopt_ctx()
2033 optval, 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()
2093 static int ipv4_multicast_group(struct net_context *ctx, const void *optval, in ipv4_multicast_group() argument
2100 if (optval == NULL || optlen != sizeof(struct ip_mreqn)) { in ipv4_multicast_group()
2105 mreqn = (struct ip_mreqn *)optval; in ipv4_multicast_group()
2149 static int ipv6_multicast_group(struct net_context *ctx, const void *optval, in ipv6_multicast_group() argument
2156 if (optval == NULL || optlen != sizeof(struct ipv6_mreq)) { in ipv6_multicast_group()
2161 mreq = (struct ipv6_mreq *)optval; 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()
2286 const struct zsock_timeval *tv = optval; in zsock_setsockopt_ctx()
2318 const struct zsock_timeval *tv = optval; in zsock_setsockopt_ctx()
2351 optval, optlen); in zsock_setsockopt_ctx()
2366 optval, optlen); in zsock_setsockopt_ctx()
2381 const struct ifreq *ifreq = optval; 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()
2509 optval, in zsock_setsockopt_ctx()
2526 optval, 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()
2567 return ipv4_multicast_group(ctx, optval, in zsock_setsockopt_ctx()
2575 return ipv4_multicast_group(ctx, optval, in zsock_setsockopt_ctx()
2585 optval, optlen); in zsock_setsockopt_ctx()
2604 optval, optlen); in zsock_setsockopt_ctx()
2619 optval, in zsock_setsockopt_ctx()
2634 optval, in zsock_setsockopt_ctx()
2650 optval, in zsock_setsockopt_ctx()
2666 optval, 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()
2713 return ipv6_multicast_group(ctx, optval, in zsock_setsockopt_ctx()
2721 return ipv6_multicast_group(ctx, optval, 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()