Lines Matching refs:net_context

81 static struct net_context contexts[NET_MAX_CONTEXT];
88 bool net_context_is_reuseaddr_set(struct net_context *context) in net_context_is_reuseaddr_set()
97 bool net_context_is_reuseport_set(struct net_context *context) in net_context_is_reuseport_set()
106 bool net_context_is_v6only_set(struct net_context *context) in net_context_is_v6only_set()
121 bool net_context_is_recv_pktinfo_set(struct net_context *context) in net_context_is_recv_pktinfo_set()
132 bool net_context_is_timestamping_set(struct net_context *context) in net_context_is_timestamping_set()
144 static inline bool is_in_tcp_listen_state(struct net_context *context) in is_in_tcp_listen_state()
158 static inline bool is_in_tcp_time_wait_state(struct net_context *context) in is_in_tcp_time_wait_state()
175 static int check_used_port(struct net_context *context, in check_used_port()
354 static uint16_t find_available_port(struct net_context *context, in find_available_port()
419 uint16_t proto, struct net_context **context) in net_context_check()
517 struct net_context **context) in net_context_get()
639 int net_context_ref(struct net_context *context) in net_context_ref()
646 int net_context_unref(struct net_context *context) in net_context_unref()
677 int net_context_put(struct net_context *context) in net_context_put()
713 static int bind_default(struct net_context *context) in bind_default()
798 static int recheck_port(struct net_context *context, in recheck_port()
841 int net_context_bind(struct net_context *context, const struct sockaddr *addr, in net_context_bind()
1183 static inline struct net_context *find_context(void *conn_handler) in find_context()
1200 int net_context_listen(struct net_context *context, int backlog) in net_context_listen()
1229 int net_context_create_ipv4_new(struct net_context *context, in net_context_create_ipv4_new()
1283 int net_context_create_ipv6_new(struct net_context *context, in net_context_create_ipv6_new()
1315 int net_context_connect(struct net_context *context, in net_context_connect()
1503 int net_context_accept(struct net_context *context, in net_context_accept()
1598 static int get_context_priority(struct net_context *context, in get_context_priority()
1613 static int get_context_proxy(struct net_context *context, in get_context_proxy()
1641 static int get_context_txtime(struct net_context *context, in get_context_txtime()
1656 static int get_context_rcvtimeo(struct net_context *context, in get_context_rcvtimeo()
1676 static int get_context_sndtimeo(struct net_context *context, in get_context_sndtimeo()
1696 static int get_context_rcvbuf(struct net_context *context, in get_context_rcvbuf()
1711 static int get_context_sndbuf(struct net_context *context, in get_context_sndbuf()
1726 static int get_context_dscp_ecn(struct net_context *context, in get_context_dscp_ecn()
1741 static int get_context_ttl(struct net_context *context, in get_context_ttl()
1761 static int get_context_mcast_ttl(struct net_context *context, in get_context_mcast_ttl()
1781 static int get_context_mcast_hop_limit(struct net_context *context, in get_context_mcast_hop_limit()
1801 static int get_context_unicast_hop_limit(struct net_context *context, in get_context_unicast_hop_limit()
1821 static int get_context_reuseaddr(struct net_context *context, in get_context_reuseaddr()
1836 static int get_context_reuseport(struct net_context *context, in get_context_reuseport()
1851 static int get_context_ipv6_v6only(struct net_context *context, in get_context_ipv6_v6only()
1866 static int get_context_recv_pktinfo(struct net_context *context, in get_context_recv_pktinfo()
1881 static int get_context_addr_preferences(struct net_context *context, in get_context_addr_preferences()
1896 static int get_context_timestamping(struct net_context *context, in get_context_timestamping()
1916 static int get_context_mtu(struct net_context *context, in get_context_mtu()
1958 static int get_context_mcast_ifindex(struct net_context *context, in get_context_mcast_ifindex()
2016 static int get_context_local_port_range(struct net_context *context, in get_context_local_port_range()
2068 static int context_setup_udp_packet(struct net_context *context, in context_setup_udp_packet()
2131 static void context_finalize_packet(struct net_context *context, in context_finalize_packet()
2148 static struct net_pkt *context_alloc_pkt(struct net_context *context, in context_alloc_pkt()
2202 static int context_sendto(struct net_context *context, in context_sendto()
2643 int net_context_send(struct net_context *context, in net_context_send()
2686 int net_context_sendmsg(struct net_context *context, in net_context_sendmsg()
2705 int net_context_sendto(struct net_context *context, in net_context_sendto()
2732 struct net_context *context = find_context(conn); in net_context_packet_received()
2774 static int recv_udp(struct net_context *context, in recv_udp()
2864 struct net_context *context = find_context(conn); in net_context_raw_packet_received()
2889 static int recv_raw(struct net_context *context, in recv_raw()
2935 int net_context_recv(struct net_context *context, in net_context_recv()
3031 int net_context_update_recv_wnd(struct net_context *context, in net_context_update_recv_wnd()
3104 static int set_context_priority(struct net_context *context, in set_context_priority()
3118 static int set_context_txtime(struct net_context *context, in set_context_txtime()
3132 static int set_context_proxy(struct net_context *context, in set_context_proxy()
3159 static int set_context_rcvtimeo(struct net_context *context, in set_context_rcvtimeo()
3179 static int set_context_sndtimeo(struct net_context *context, in set_context_sndtimeo()
3199 static int set_context_rcvbuf(struct net_context *context, in set_context_rcvbuf()
3213 static int set_context_sndbuf(struct net_context *context, in set_context_sndbuf()
3227 static int set_context_dscp_ecn(struct net_context *context, in set_context_dscp_ecn()
3241 static int set_context_ttl(struct net_context *context, in set_context_ttl()
3259 static int set_context_mcast_ttl(struct net_context *context, in set_context_mcast_ttl()
3277 static int set_context_mcast_hop_limit(struct net_context *context, in set_context_mcast_hop_limit()
3313 static int set_context_unicast_hop_limit(struct net_context *context, in set_context_unicast_hop_limit()
3332 static int set_context_reuseaddr(struct net_context *context, in set_context_reuseaddr()
3346 static int set_context_reuseport(struct net_context *context, in set_context_reuseport()
3360 static int set_context_ipv6_mtu(struct net_context *context, in set_context_ipv6_mtu()
3409 static int set_context_ipv6_v6only(struct net_context *context, in set_context_ipv6_v6only()
3423 static int set_context_recv_pktinfo(struct net_context *context, in set_context_recv_pktinfo()
3437 static int set_context_addr_preferences(struct net_context *context, in set_context_addr_preferences()
3452 static int set_context_timestamping(struct net_context *context, in set_context_timestamping()
3469 static int set_context_mcast_ifindex(struct net_context *context, in set_context_mcast_ifindex()
3530 static int set_context_local_port_range(struct net_context *context, in set_context_local_port_range()
3569 int net_context_set_option(struct net_context *context, in net_context_set_option()
3662 int net_context_get_option(struct net_context *context, in net_context_get_option()
3747 int net_context_get_local_addr(struct net_context *ctx, in net_context_get_local_addr()
3813 const char *net_context_state(struct net_context *context) in net_context_state()