Lines Matching refs:options
93 return context->options.reuseaddr; in net_context_is_reuseaddr_set()
102 return context->options.reuseport; in net_context_is_reuseport_set()
115 return context->options.ipv6_v6only; in net_context_is_v6only_set()
126 return context->options.recv_pktinfo; in net_context_is_recv_pktinfo_set()
137 return context->options.recv_hoplimit; in net_context_is_recv_hoplimit_set()
148 return (bool)(context->options.timestamping > 0); in net_context_is_timestamping_set()
348 (context->options.port_range >> 16), in check_used_port()
351 (context->options.port_range & 0xffff), in check_used_port()
378 (context->options.port_range >> 16), in find_available_port()
381 (context->options.port_range & 0xffff), in find_available_port()
578 contexts[i].options.addr_preferences = IPV6_PREFER_SRC_PUBTMP_DEFAULT; in net_context_get()
582 contexts[i].options.rcvtimeo = K_FOREVER; in net_context_get()
585 contexts[i].options.sndtimeo = K_FOREVER; in net_context_get()
589 contexts[i].options.ipv6_v6only = true; in net_context_get()
592 contexts[i].options.ipv4_mcast_loop = in net_context_get()
613 contexts[i].options.ipv6_mcast_loop = in net_context_get()
911 (context->options.ipv6_mcast_ifindex > 0), in net_context_bind()
915 context->options.ipv6_mcast_ifindex))); in net_context_bind()
1020 (context->options.ipv4_mcast_ifindex > 0), in net_context_bind()
1024 context->options.ipv4_mcast_ifindex))); in net_context_bind()
1283 net_pkt_set_ip_dscp(pkt, net_ipv4_get_dscp(context->options.dscp_ecn)); in net_context_create_ipv4_new()
1284 net_pkt_set_ip_ecn(pkt, net_ipv4_get_ecn(context->options.dscp_ecn)); in net_context_create_ipv4_new()
1288 net_ipv4_get_dscp(context->options.dscp_ecn))); in net_context_create_ipv4_new()
1328 context->options.addr_preferences); in net_context_create_ipv6_new()
1332 net_pkt_set_ip_dscp(pkt, net_ipv6_get_dscp(context->options.dscp_ecn)); in net_context_create_ipv6_new()
1333 net_pkt_set_ip_ecn(pkt, net_ipv6_get_ecn(context->options.dscp_ecn)); in net_context_create_ipv6_new()
1337 net_ipv6_get_dscp(context->options.dscp_ecn))); in net_context_create_ipv6_new()
1642 return get_uint8_option(context->options.priority, in get_context_priority()
1663 if (*len < context->options.proxy.addrlen) { in get_context_proxy()
1667 *len = MIN(context->options.proxy.addrlen, *len); in get_context_proxy()
1669 memcpy(addr, &context->options.proxy.addr, *len); in get_context_proxy()
1685 return get_bool_option(context->options.txtime, in get_context_txtime()
1700 *((k_timeout_t *)value) = context->options.rcvtimeo; in get_context_rcvtimeo()
1720 *((k_timeout_t *)value) = context->options.sndtimeo; in get_context_sndtimeo()
1740 return get_uint16_option(context->options.rcvbuf, in get_context_rcvbuf()
1755 return get_uint16_option(context->options.sndbuf, in get_context_sndbuf()
1770 return get_uint8_option(context->options.dscp_ecn, in get_context_dscp_ecn()
1825 return get_bool_option(context->options.ipv4_mcast_loop, value, len); in get_context_ipv4_mcast_loop()
1878 return get_bool_option(context->options.reuseaddr, in get_context_reuseaddr()
1893 return get_bool_option(context->options.reuseport, in get_context_reuseport()
1908 return get_bool_option(context->options.ipv6_v6only, in get_context_ipv6_v6only()
1923 return get_bool_option(context->options.recv_pktinfo, in get_context_recv_pktinfo()
1938 return get_bool_option(context->options.recv_hoplimit, in get_context_recv_hoplimit()
1953 return get_uint16_option(context->options.addr_preferences, in get_context_addr_preferences()
1968 *((uint8_t *)value) = context->options.timestamping; in get_context_timestamping()
2037 if (context->options.ipv6_mcast_ifindex == 0) { in get_context_mcast_ifindex()
2064 *((int *)value) = context->options.ipv6_mcast_ifindex; in get_context_mcast_ifindex()
2092 *((uint32_t *)value) = context->options.port_range; in get_context_local_port_range()
2108 return get_bool_option(context->options.ipv6_mcast_loop, value, len); in get_context_ipv6_mcast_loop()
2201 if (context->options.timestamping & SOF_TIMESTAMPING_TX_HARDWARE) { in context_setup_udp_packet()
2205 if (context->options.timestamping & SOF_TIMESTAMPING_RX_HARDWARE) { in context_setup_udp_packet()
2434 (context->options.ipv6_mcast_ifindex > 0), (false))) { in context_sendto()
2437 context->options.ipv6_mcast_ifindex))); in context_sendto()
2500 (context->options.ipv4_mcast_ifindex > 0), (false))) { in context_sendto()
2503 context->options.ipv4_mcast_ifindex))); in context_sendto()
3353 return set_uint8_option(&context->options.priority, value, len); in set_context_priority()
3367 return set_bool_option(&context->options.txtime, value, len); in set_context_txtime()
3391 context->options.proxy.addrlen = len; in set_context_proxy()
3392 memcpy(&context->options.proxy.addr, addr, len); in set_context_proxy()
3412 context->options.rcvtimeo = *((k_timeout_t *)value); in set_context_rcvtimeo()
3432 context->options.sndtimeo = *((k_timeout_t *)value); in set_context_sndtimeo()
3448 return set_uint16_option(&context->options.rcvbuf, value, len); in set_context_rcvbuf()
3462 return set_uint16_option(&context->options.sndbuf, value, len); in set_context_sndbuf()
3476 return set_uint8_option(&context->options.dscp_ecn, value, len); in set_context_dscp_ecn()
3526 return set_bool_option(&context->options.ipv4_mcast_loop, value, len); in set_context_ipv4_mcast_loop()
3595 return set_bool_option(&context->options.ipv6_mcast_loop, value, len); in set_context_ipv6_mcast_loop()
3609 return set_bool_option(&context->options.reuseaddr, value, len); in set_context_reuseaddr()
3623 return set_bool_option(&context->options.reuseport, value, len); in set_context_reuseport()
3686 return set_bool_option(&context->options.ipv6_v6only, value, len); in set_context_ipv6_v6only()
3700 return set_bool_option(&context->options.recv_pktinfo, value, len); in set_context_recv_pktinfo()
3715 return set_bool_option(&context->options.recv_hoplimit, value, len); in set_context_recv_hoplimit()
3732 return set_uint16_option(&context->options.addr_preferences, in set_context_addr_preferences()
3749 return set_uint8_option(&context->options.timestamping, in set_context_timestamping()
3783 context->options.ipv6_mcast_ifindex = 0; in set_context_mcast_ifindex()
3806 context->options.ipv6_mcast_ifindex = mcast_ifindex; in set_context_mcast_ifindex()
3848 context->options.port_range = port_range; in set_context_local_port_range()