Home
last modified time | relevance | path

Searched refs:inet_sk (Results 1 – 25 of 108) sorted by relevance

12345

/Linux-v6.1/include/net/
Dinet_sock.h304 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk() function
313 memcpy(inet_sk(sk_to) + 1, inet_sk(sk_from) + 1, in __inet_sk_copy_descendant()
364 if (inet_sk(sk)->transparent || inet_sk(sk)->hdrincl) in inet_sk_flowi_flags()
371 inet_sk(sk)->convert_csum++; in inet_inc_convert_csum()
376 if (inet_sk(sk)->convert_csum > 0) in inet_dec_convert_csum()
377 inet_sk(sk)->convert_csum--; in inet_dec_convert_csum()
382 return !!inet_sk(sk)->convert_csum; in inet_get_convert_csum()
Dip.h242 return __ip_make_skb(sk, fl4, &sk->sk_write_queue, &inet_sk(sk)->cork.base); in ip_finish_skb()
418 u8 pmtudisc = READ_ONCE(inet_sk(sk)->pmtudisc); in ip_dont_fragment()
427 return inet_sk(sk)->pmtudisc != IP_PMTUDISC_INTERFACE && in ip_sk_accept_pmtu()
428 inet_sk(sk)->pmtudisc != IP_PMTUDISC_OMIT; in ip_sk_accept_pmtu()
433 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_PROBE; in ip_sk_use_pmtu()
438 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_DO || in ip_sk_ignore_df()
439 inet_sk(sk)->pmtudisc == IP_PMTUDISC_OMIT; in ip_sk_ignore_df()
531 if (sk && inet_sk(sk)->inet_daddr) { in ip_select_ident_segs()
532 iph->id = htons(inet_sk(sk)->inet_id); in ip_select_ident_segs()
533 inet_sk(sk)->inet_id += segs; in ip_select_ident_segs()
[all …]
Dinet_ecn.h56 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit()
63 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_tcp_estats.c93 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk() function
214 conn_id->localport = _(inet_sk(sk)->inet_sport); in tcp_estats_conn_id_init()
215 conn_id->remport = _(inet_sk(sk)->inet_dport); in tcp_estats_conn_id_init()
223 &inet_sk(sk)->inet_saddr, in tcp_estats_conn_id_init()
224 &inet_sk(sk)->inet_daddr); in tcp_estats_conn_id_init()
/Linux-v6.1/net/ipv4/
Dudp_tunnel_core.c66 inet_sk(sk)->mc_loop = 0; in setup_udp_tunnel_sock()
93 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_push_rx_port()
107 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_drop_rx_port()
123 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_notify_add_rx_port()
143 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_notify_del_rx_port()
Dinet_hashtables.c163 inet_sk(sk)->inet_num = port; in inet_bind_hash()
181 bhash = inet_bhashfn(net, inet_sk(sk)->inet_num, hashinfo->bhash_size); in __inet_put_port()
183 head2 = inet_bhashfn_portaddr(hashinfo, sk, net, inet_sk(sk)->inet_num); in __inet_put_port()
189 inet_sk(sk)->inet_num = 0; in __inet_put_port()
216 unsigned short port = inet_sk(child)->inet_num; in __inet_inherit_port()
302 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk()
306 inet_sk(sk)->inet_rcv_saddr, in inet_lhash2_bucket_sk()
307 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk()
522 struct inet_sock *inet = inet_sk(sk); in __inet_check_established()
584 const struct inet_sock *inet = inet_sk(sk); in inet_sk_port_offset()
[all …]
Dping.c90 isk = inet_sk(sk); in ping_get_port()
102 isk2 = inet_sk(sk2); in ping_get_port()
119 isk2 = inet_sk(sk2); in ping_get_port()
152 pr_debug("ping_hash(sk->port=%u)\n", inet_sk(sk)->inet_num); in ping_hash()
160 struct inet_sock *isk = inet_sk(sk); in ping_unhash()
201 isk = inet_sk(sk); in ping_lookup()
297 inet_sk(sk), inet_sk(sk)->inet_num); in ping_close()
408 struct inet_sock *isk = inet_sk(sk); in ping_set_saddr()
427 struct inet_sock *isk = inet_sk(sk); in ping_bind()
543 inet_sock = inet_sk(sk); in ping_err()
[all …]
Draw.c96 hlist = &h->ht[inet_sk(sk)->inet_num & (RAW_HTABLE_SIZE - 1)]; in raw_hash_sk()
122 struct inet_sock *inet = inet_sk(sk); in raw_v4_match()
203 struct inet_sock *inet = inet_sk(sk); in raw_err()
321 struct inet_sock *inet = inet_sk(sk); in raw_send_hdrinc()
473 struct inet_sock *inet = inet_sk(sk); in raw_sendmsg()
690 struct inet_sock *inet = inet_sk(sk); in raw_bind()
730 struct inet_sock *inet = inet_sk(sk); in raw_recvmsg()
784 if (inet_sk(sk)->inet_num == IPPROTO_ICMP) in raw_sk_init()
821 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_setsockopt()
841 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_getsockopt()
[all …]
Dip_sockglue.c174 struct inet_sock *inet = inet_sk(sk); in ip_cmsg_recv_offset()
343 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control()
427 if (inet_sk(sk)->recverr_rfc4884) in ip_icmp_error()
439 struct inet_sock *inet = inet_sk(sk); in ip_local_error()
563 if (inet_sk(sk)->cmsg_flags) in ip_recv_error()
583 val |= inet_sk(sk)->tos & INET_ECN_MASK; in __ip_sock_set_tos()
585 if (inet_sk(sk)->tos != val) { in __ip_sock_set_tos()
586 inet_sk(sk)->tos = val; in __ip_sock_set_tos()
603 inet_sk(sk)->freebind = true; in ip_sock_set_freebind()
611 inet_sk(sk)->recverr = true; in ip_sock_set_recverr()
[all …]
Ddatagram.c21 struct inet_sock *inet = inet_sk(sk); in __ip4_datagram_connect()
102 const struct inet_sock *inet = inet_sk(sk); in ip4_datagram_release_cb()
Dinet_connection_sock.c785 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock()
1111 inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port; in inet_csk_clone_lock()
1112 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock()
1113 inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); in inet_csk_clone_lock()
1118 inet_sk(newsk)->mc_list = NULL; in inet_csk_clone_lock()
1155 WARN_ON(inet_sk(sk)->inet_num && !inet_csk(sk)->icsk_bind_hash); in inet_csk_destroy_sock()
1181 inet_sk(sk)->inet_num = 0; in inet_csk_prepare_forced_close()
1188 struct inet_sock *inet = inet_sk(sk); in inet_csk_listen_start()
1394 const struct inet_sock *inet = inet_sk(sk); in inet_csk_addr2sockaddr()
1404 const struct inet_sock *inet = inet_sk(sk); in inet_csk_rebuild_route()
[all …]
Daf_inet.c134 struct inet_sock *inet = inet_sk(sk); in inet_sock_destruct()
178 inet = inet_sk(sk); in inet_autobind()
327 inet = inet_sk(sk); in inet_create()
464 struct inet_sock *inet = inet_sk(sk); in __inet_bind()
579 if (data_race(!inet_sk(sk)->inet_num) && inet_autobind(sk)) in inet_dgram_connect()
648 if (inet_sk(sk)->defer_connect) in __inet_stream_connect()
671 if (!err && inet_sk(sk)->defer_connect) in __inet_stream_connect()
776 struct inet_sock *inet = inet_sk(sk); in inet_getname()
812 if (data_race(!inet_sk(sk)->inet_num) && !sk->sk_prot->no_autobind && in inet_send_prepare()
1233 struct inet_sock *inet = inet_sk(sk); in inet_sk_reselect_saddr()
[all …]
Dudp.c310 inet_sk(sk)->inet_num = snum; in udp_lib_get_port()
316 inet_sk(sk)->inet_num = 0; in udp_lib_get_port()
352 ipv4_portaddr_hash(sock_net(sk), inet_sk(sk)->inet_rcv_saddr, 0); in udp_v4_get_port()
378 inet = inet_sk(sk); in compute_score()
580 struct inet_sock *inet = inet_sk(sk); in __udp_is_mcast_sock()
746 inet = inet_sk(sk); in __udp4_lib_err()
898 struct inet_sock *inet = inet_sk(sk); in udp_send_skb()
990 struct inet_sock *inet = inet_sk(sk); in udp_push_pending_frames()
1047 struct inet_sock *inet = inet_sk(sk); in udp_sendmsg()
1328 struct inet_sock *inet = inet_sk(sk); in udp_sendpage()
[all …]
Dxfrm4_output.c45 inet_sk(skb->sk)->inet_dport, mtu); in xfrm4_local_error()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dfs_tcp.c37 &inet_sk(sk)->inet_daddr, 4); in accel_fs_tcp_set_ipv4_flow()
40 &inet_sk(sk)->inet_rcv_saddr, 4); in accel_fs_tcp_set_ipv4_flow()
96 &inet_sk(sk)->inet_rcv_saddr, in mlx5e_accel_fs_add_sk()
97 inet_sk(sk)->inet_sport, in mlx5e_accel_fs_add_sk()
98 &inet_sk(sk)->inet_daddr, in mlx5e_accel_fs_add_sk()
99 inet_sk(sk)->inet_dport); in mlx5e_accel_fs_add_sk()
127 ntohs(inet_sk(sk)->inet_sport)); in mlx5e_accel_fs_add_sk()
129 ntohs(inet_sk(sk)->inet_dport)); in mlx5e_accel_fs_add_sk()
/Linux-v6.1/net/mptcp/
Dsockopt.c417 inet_sk(sk)->transparent = inet_sk(ssock->sk)->transparent; in mptcp_setsockopt_v6()
420 inet_sk(sk)->freebind = inet_sk(ssock->sk)->freebind; in mptcp_setsockopt_v6()
701 issk = inet_sk(ssock->sk); in mptcp_setsockopt_sol_ip_set_transparent()
705 issk->freebind = inet_sk(sk)->freebind; in mptcp_setsockopt_sol_ip_set_transparent()
708 issk->transparent = inet_sk(sk)->transparent; in mptcp_setsockopt_sol_ip_set_transparent()
735 val = inet_sk(sk)->tos; in mptcp_setsockopt_v4_set_tos()
1048 struct inet_sock *inet = inet_sk(sk); in mptcp_get_sub_addrs()
1196 return mptcp_put_int_option(msk, optval, optlen, inet_sk(sk)->tos); in mptcp_getsockopt_v4()
1261 __ip_sock_set_tos(ssk, inet_sk(sk)->tos); in sync_socket_options()
1290 inet_sk(ssk)->transparent = inet_sk(sk)->transparent; in sync_socket_options()
[all …]
/Linux-v6.1/net/ipv6/
Draw.c71 if (inet_sk(sk)->inet_num != num || in raw_v6_match()
215 struct inet_sock *inet = inet_sk(sk); in rawv6_bind()
297 struct inet_sock *inet = inet_sk(sk); in rawv6_err()
384 struct inet_sock *inet = inet_sk(sk); in rawv6_rcv()
524 total_len = inet_sk(sk)->cork.base.length; in rawv6_push_pending_frames()
738 struct inet_sock *inet = inet_sk(sk); in rawv6_sendmsg()
999 inet_sk(sk)->hdrincl = !!val; in do_rawv6_setsockopt()
1002 if (inet_sk(sk)->inet_num == IPPROTO_ICMPV6 && in do_rawv6_setsockopt()
1041 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_setsockopt()
1067 val = inet_sk(sk)->hdrincl; in do_rawv6_getsockopt()
[all …]
Dinet6_hashtables.c99 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score()
248 struct inet_sock *inet = inet_sk(sk); in __inet6_check_established()
310 const struct inet_sock *inet = inet_sk(sk); in inet6_sk_port_offset()
322 if (!inet_sk(sk)->inet_num) in inet6_hash_connect()
Dipv6_sockglue.c65 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control()
105 if (inet_sk(sk)->is_icsk) { in ipv6_update_options()
108 inet_sk(sk)->inet_daddr != LOOPBACK4_IPV6) { in ipv6_update_options()
523 inet_sk(sk)->inet_num) in do_ipv6_setsockopt()
648 inet_sk(sk)->transparent = valbool; in do_ipv6_setsockopt()
656 inet_sk(sk)->freebind = valbool; in do_ipv6_setsockopt()
845 if (inet_sk(sk)->is_icsk) in do_ipv6_setsockopt()
1346 val = inet_sk(sk)->transparent; in do_ipv6_getsockopt()
1350 val = inet_sk(sk)->freebind; in do_ipv6_getsockopt()
Dinet6_connection_sock.c65 sin6->sin6_port = inet_sk(sk)->inet_dport; in inet6_csk_addr2sockaddr()
82 struct inet_sock *inet = inet_sk(sk); in inet6_csk_route_socket()
/Linux-v6.1/net/l2tp/
Dl2tp_ip.c52 const struct inet_sock *inet = inet_sk(sk); in __l2tp_ip_bind_lookup()
221 inet_sk(sk)->inet_num = IPPROTO_L2TP; in l2tp_ip_open()
250 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_bind()
355 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_getname()
401 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_sendmsg()
522 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_recvmsg()
/Linux-v6.1/include/trace/events/
Dtcp.h70 struct inet_sock *inet = inet_sk(sk);
140 struct inet_sock *inet = inet_sk(sk);
265 const struct inet_sock *inet = inet_sk(sk);
392 struct inet_sock *inet = inet_sk(sk);
Dudp.h24 __entry->lport = inet_sk(sk)->inet_num;
/Linux-v6.1/net/dccp/
Dipv4.c48 struct inet_sock *inet = inet_sk(sk); in dccp_v4_connect()
162 const struct inet_sock *inet = inet_sk(sk); in dccp_do_pmtu_discovery()
363 inet = inet_sk(sk); in dccp_v4_err()
383 const struct inet_sock *inet = inet_sk(sk); in dccp_v4_send_check()
425 newinet = inet_sk(newsk); in dccp_v4_request_recv_sock()
513 inet_sk(sk)->tos); in dccp_v4_send_response()
559 inet_sk(ctl_sk)->tos); in dccp_v4_ctl_send_reset()
/Linux-v6.1/drivers/net/wireguard/
Dsocket.c46 fl.fl4_sport = inet_sk(sock)->inet_sport; in send4()
126 fl.fl6_sport = inet_sk(sock)->inet_sport; in send6()
397 port6.local_udp_port = inet_sk(new4->sk)->inet_sport; in wg_socket_init()
432 wg->incoming_port = ntohs(inet_sk(new4)->inet_sport); in wg_socket_reinit()

12345