/kernel/linux/linux-5.10/include/net/ |
D | inet_sock.h | 300 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk() function 309 memcpy(inet_sk(sk_to) + 1, inet_sk(sk_from) + 1, in __inet_sk_copy_descendant() 360 if (inet_sk(sk)->transparent || inet_sk(sk)->hdrincl) in inet_sk_flowi_flags() 367 inet_sk(sk)->convert_csum++; in inet_inc_convert_csum() 372 if (inet_sk(sk)->convert_csum > 0) in inet_dec_convert_csum() 373 inet_sk(sk)->convert_csum--; in inet_dec_convert_csum() 378 return !!inet_sk(sk)->convert_csum; in inet_get_convert_csum()
|
D | ip.h | 243 return __ip_make_skb(sk, fl4, &sk->sk_write_queue, &inet_sk(sk)->cork.base); in ip_finish_skb() 415 u8 pmtudisc = READ_ONCE(inet_sk(sk)->pmtudisc); in ip_dont_fragment() 424 return inet_sk(sk)->pmtudisc != IP_PMTUDISC_INTERFACE && in ip_sk_accept_pmtu() 425 inet_sk(sk)->pmtudisc != IP_PMTUDISC_OMIT; in ip_sk_accept_pmtu() 430 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_PROBE; in ip_sk_use_pmtu() 435 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_DO || in ip_sk_ignore_df() 436 inet_sk(sk)->pmtudisc == IP_PMTUDISC_OMIT; in ip_sk_ignore_df() 515 if (sk && inet_sk(sk)->inet_daddr) { in ip_select_ident_segs() 516 iph->id = htons(inet_sk(sk)->inet_id); in ip_select_ident_segs() 517 inet_sk(sk)->inet_id += segs; in ip_select_ident_segs() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_tcp_estats.c | 93 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | fs_tcp.c | 37 &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() 98 &inet_sk(sk)->inet_rcv_saddr, in mlx5e_accel_fs_add_sk() 99 inet_sk(sk)->inet_sport, in mlx5e_accel_fs_add_sk() 100 &inet_sk(sk)->inet_daddr, in mlx5e_accel_fs_add_sk() 101 inet_sk(sk)->inet_dport); in mlx5e_accel_fs_add_sk() 129 ntohs(inet_sk(sk)->inet_sport)); in mlx5e_accel_fs_add_sk() 131 ntohs(inet_sk(sk)->inet_dport)); in mlx5e_accel_fs_add_sk()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | udp_tunnel_core.c | 69 inet_sk(sk)->mc_loop = 0; in setup_udp_tunnel_sock() 99 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_push_rx_port() 117 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_drop_rx_port() 133 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_notify_add_rx_port() 157 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_notify_del_rx_port()
|
D | ping.c | 84 isk = inet_sk(sk); in ping_get_port() 96 isk2 = inet_sk(sk2); in ping_get_port() 113 isk2 = inet_sk(sk2); in ping_get_port() 145 pr_debug("ping_hash(sk->port=%u)\n", inet_sk(sk)->inet_num); in ping_hash() 153 struct inet_sock *isk = inet_sk(sk); in ping_unhash() 196 isk = inet_sk(sk); in ping_lookup() 294 inet_sk(sk), inet_sk(sk)->inet_num); in ping_close() 393 struct inet_sock *isk = inet_sk(sk); in ping_set_saddr() 412 struct inet_sock *isk = inet_sk(sk); in ping_bind() 526 inet_sock = inet_sk(sk); in ping_err() [all …]
|
D | inet_hashtables.c | 107 inet_sk(sk)->inet_num = snum; in inet_bind_hash() 118 const int bhash = inet_bhashfn(sock_net(sk), inet_sk(sk)->inet_num, in __inet_put_port() 127 inet_sk(sk)->inet_num = 0; in __inet_put_port() 143 unsigned short port = inet_sk(child)->inet_num; in __inet_inherit_port() 196 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk() 200 inet_sk(sk)->inet_rcv_saddr, in inet_lhash2_bucket_sk() 201 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk() 453 struct inet_sock *inet = inet_sk(sk); in __inet_check_established() 515 const struct inet_sock *inet = inet_sk(sk); in inet_sk_port_offset() 750 int port = inet_sk(sk)->inet_num; in __inet_hash_connect() [all …]
|
D | ip_sockglue.c | 174 struct inet_sock *inet = inet_sk(sk); in ip_cmsg_recv_offset() 350 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 434 if (inet_sk(sk)->recverr_rfc4884) in ip_icmp_error() 446 struct inet_sock *inet = inet_sk(sk); in ip_local_error() 570 if (inet_sk(sk)->cmsg_flags) in ip_recv_error() 590 val |= inet_sk(sk)->tos & INET_ECN_MASK; in __ip_sock_set_tos() 592 if (inet_sk(sk)->tos != val) { in __ip_sock_set_tos() 593 inet_sk(sk)->tos = val; in __ip_sock_set_tos() 610 inet_sk(sk)->freebind = true; in ip_sock_set_freebind() 618 inet_sk(sk)->recverr = true; in ip_sock_set_recverr() [all …]
|
D | raw.c | 98 head = &h->ht[inet_sk(sk)->inet_num & (RAW_HTABLE_SIZE - 1)]; in raw_hash_sk() 125 struct inet_sock *inet = inet_sk(sk); in __raw_v4_lookup() 227 struct inet_sock *inet = inet_sk(sk); in raw_err() 349 struct inet_sock *inet = inet_sk(sk); in raw_send_hdrinc() 501 struct inet_sock *inet = inet_sk(sk); in raw_sendmsg() 721 struct inet_sock *inet = inet_sk(sk); in raw_bind() 760 struct inet_sock *inet = inet_sk(sk); in raw_recvmsg() 814 if (inet_sk(sk)->inet_num == IPPROTO_ICMP) in raw_sk_init() 851 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_setsockopt() 871 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_getsockopt() [all …]
|
D | inet_connection_sock.c | 638 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock() 851 inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port; in inet_csk_clone_lock() 852 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock() 853 inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); in inet_csk_clone_lock() 858 inet_sk(newsk)->mc_list = NULL; in inet_csk_clone_lock() 895 WARN_ON(inet_sk(sk)->inet_num && !inet_csk(sk)->icsk_bind_hash); in inet_csk_destroy_sock() 921 inet_sk(sk)->inet_num = 0; in inet_csk_prepare_forced_close() 938 struct inet_sock *inet = inet_sk(sk); in inet_csk_listen_start() 1090 const struct inet_sock *inet = inet_sk(sk); in inet_csk_addr2sockaddr() 1100 const struct inet_sock *inet = inet_sk(sk); in inet_csk_rebuild_route() [all …]
|
D | datagram.c | 22 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()
|
D | af_inet.c | 136 struct inet_sock *inet = inet_sk(sk); in inet_sock_destruct() 184 inet = inet_sk(sk); in inet_autobind() 336 inet = inet_sk(sk); in inet_create() 471 struct inet_sock *inet = inet_sk(sk); in __inet_bind() 586 if (data_race(!inet_sk(sk)->inet_num) && inet_autobind(sk)) in inet_dgram_connect() 657 if (inet_sk(sk)->defer_connect) in __inet_stream_connect() 680 if (!err && inet_sk(sk)->defer_connect) in __inet_stream_connect() 783 struct inet_sock *inet = inet_sk(sk); in inet_getname() 816 if (data_race(!inet_sk(sk)->inet_num) && !sk->sk_prot->no_autobind && in inet_send_prepare() 1236 struct inet_sock *inet = inet_sk(sk); in inet_sk_reselect_saddr() [all …]
|
D | xfrm4_output.c | 45 inet_sk(skb->sk)->inet_dport, mtu); in xfrm4_local_error()
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | nip_sockglue.c | 66 struct inet_sock *inet = inet_sk(sk); in do_nip_setsockopt() 119 struct inet_sock *inet = inet_sk(sk); in do_nip_getsockopt() 199 struct inet_sock *inet = inet_sk(sk); in nip_sock_debug()
|
D | ninet_hashtables.c | 134 inet_sk(sk)->inet_num); in ninet_lhash2_bucket_sk() 353 if (inet_sk(sk)->inet_num == hnum && sk->sk_family == PF_NINET && in nip_tcp_compute_score() 451 struct inet_sock *inet = inet_sk(sk); in __ninet_check_established() 497 const struct inet_sock *inet = inet_sk(sk); in ninet_sk_port_offset() 510 if (!inet_sk(sk)->inet_num) in ninet_hash_connect()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | raw.c | 76 if (inet_sk(sk)->inet_num == num) { in __raw_v6_lookup() 244 struct inet_sock *inet = inet_sk(sk); in rawv6_bind() 326 struct inet_sock *inet = inet_sk(sk); in rawv6_err() 418 struct inet_sock *inet = inet_sk(sk); in rawv6_rcv() 559 total_len = inet_sk(sk)->cork.base.length; in rawv6_push_pending_frames() 776 struct inet_sock *inet = inet_sk(sk); in rawv6_sendmsg() 1038 inet_sk(sk)->hdrincl = !!val; in do_rawv6_setsockopt() 1041 if (inet_sk(sk)->inet_num == IPPROTO_ICMPV6 && in do_rawv6_setsockopt() 1080 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_setsockopt() 1106 val = inet_sk(sk)->hdrincl; in do_rawv6_getsockopt() [all …]
|
D | inet6_hashtables.c | 101 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score() 251 struct inet_sock *inet = inet_sk(sk); in __inet6_check_established() 313 const struct inet_sock *inet = inet_sk(sk); in inet6_sk_port_offset() 325 if (!inet_sk(sk)->inet_num) in inet6_hash_connect()
|
D | ipv6_sockglue.c | 63 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 103 if (inet_sk(sk)->is_icsk) { in ipv6_update_options() 106 inet_sk(sk)->inet_daddr != LOOPBACK4_IPV6) { in ipv6_update_options() 521 inet_sk(sk)->inet_num) in do_ipv6_setsockopt() 639 inet_sk(sk)->transparent = valbool; in do_ipv6_setsockopt() 647 inet_sk(sk)->freebind = valbool; in do_ipv6_setsockopt() 836 if (inet_sk(sk)->is_icsk) in do_ipv6_setsockopt() 1326 val = inet_sk(sk)->transparent; in do_ipv6_getsockopt() 1330 val = inet_sk(sk)->freebind; in do_ipv6_getsockopt()
|
D | inet6_connection_sock.c | 65 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()
|
/kernel/linux/linux-5.10/net/l2tp/ |
D | l2tp_ip.c | 52 const struct inet_sock *inet = inet_sk(sk); in __l2tp_ip_bind_lookup() 219 inet_sk(sk)->inet_num = IPPROTO_L2TP; in l2tp_ip_open() 248 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_bind() 353 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_getname() 399 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_sendmsg() 520 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_recvmsg()
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | udp.h | 24 __entry->lport = inet_sk(sk)->inet_num;
|
D | tcp.h | 69 struct inet_sock *inet = inet_sk(sk); 136 struct inet_sock *inet = inet_sk(sk); 255 const struct inet_sock *inet = inet_sk(sk);
|
/kernel/linux/linux-5.10/net/dccp/ |
D | ipv4.c | 41 struct inet_sock *inet = inet_sk(sk); in dccp_v4_connect() 150 const struct inet_sock *inet = inet_sk(sk); in dccp_do_pmtu_discovery() 351 inet = inet_sk(sk); in dccp_v4_err() 371 const struct inet_sock *inet = inet_sk(sk); in dccp_v4_send_check() 413 newinet = inet_sk(newsk); in dccp_v4_request_recv_sock() 501 inet_sk(sk)->tos); in dccp_v4_send_response() 544 inet_sk(ctl_sk)->tos); in dccp_v4_ctl_send_reset()
|
/kernel/linux/linux-5.10/net/sctp/ |
D | protocol.c | 178 struct inet_sock *newinet, *inet = inet_sk(sk); in sctp_v4_copy_ip_options() 181 newinet = inet_sk(newsk); in sctp_v4_copy_ip_options() 201 struct inet_sock *inet = inet_sk(sk); in sctp_v4_ip_options_len() 239 addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr; in sctp_v4_from_sk() 246 inet_sk(sk)->inet_rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr() 252 inet_sk(sk)->inet_daddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_daddr() 426 __u8 tos = inet_sk(sk)->tos; in sctp_v4_get_dst() 592 newinet = inet_sk(newsk); in sctp_v4_create_accept_sk() 983 struct inet_sock *inet = inet_sk(skb->sk); in sctp_v4_xmit()
|
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
D | socket.c | 46 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()
|