/Linux-v6.6/include/net/ |
D | inet_sock.h | 296 test_bit(INET_FLAGS_##nr, &inet_sk(sk)->inet_flags) 298 set_bit(INET_FLAGS_##nr, &inet_sk(sk)->inet_flags) 300 clear_bit(INET_FLAGS_##nr, &inet_sk(sk)->inet_flags) 302 assign_bit(INET_FLAGS_##nr, &inet_sk(sk)->inet_flags, val) 340 #define inet_sk(ptr) container_of_const(ptr, struct inet_sock, sk) macro 346 memcpy(inet_sk(sk_to) + 1, inet_sk(sk_from) + 1, in __inet_sk_copy_descendant() 404 inet_sk(sk)->convert_csum++; in inet_inc_convert_csum() 409 if (inet_sk(sk)->convert_csum > 0) in inet_dec_convert_csum() 410 inet_sk(sk)->convert_csum--; in inet_dec_convert_csum() 415 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() 428 u8 pmtudisc = READ_ONCE(inet_sk(sk)->pmtudisc); in ip_dont_fragment() 437 return inet_sk(sk)->pmtudisc != IP_PMTUDISC_INTERFACE && in ip_sk_accept_pmtu() 438 inet_sk(sk)->pmtudisc != IP_PMTUDISC_OMIT; in ip_sk_accept_pmtu() 443 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_PROBE; in ip_sk_use_pmtu() 448 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_DO || in ip_sk_ignore_df() 449 inet_sk(sk)->pmtudisc == IP_PMTUDISC_OMIT; in ip_sk_ignore_df() 541 if (sk && inet_sk(sk)->inet_daddr) { in ip_select_ident_segs() 549 val = atomic_read(&inet_sk(sk)->inet_id); in ip_select_ident_segs() 550 atomic_set(&inet_sk(sk)->inet_id, val + segs); in ip_select_ident_segs() [all …]
|
D | inet_ecn.h | 56 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.6/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()
|
/Linux-v6.6/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() 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.6/net/ipv4/ |
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() 191 isk = inet_sk(sk); in ping_lookup() 287 inet_sk(sk), inet_sk(sk)->inet_num); in ping_close() 398 struct inet_sock *isk = inet_sk(sk); in ping_set_saddr() 417 struct inet_sock *isk = inet_sk(sk); in ping_bind() 533 inet_sock = inet_sk(sk); in ping_err() [all …]
|
D | inet_hashtables.c | 171 inet_sk(sk)->inet_num = port; in inet_bind_hash() 189 bhash = inet_bhashfn(net, inet_sk(sk)->inet_num, hashinfo->bhash_size); in __inet_put_port() 191 head2 = inet_bhashfn_portaddr(hashinfo, sk, net, inet_sk(sk)->inet_num); in __inet_put_port() 197 inet_sk(sk)->inet_num = 0; in __inet_put_port() 224 unsigned short port = inet_sk(child)->inet_num; in __inet_inherit_port() 310 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk() 314 inet_sk(sk)->inet_rcv_saddr, in inet_lhash2_bucket_sk() 315 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk() 549 struct inet_sock *inet = inet_sk(sk); in __inet_check_established() 611 const struct inet_sock *inet = inet_sk(sk); in inet_sk_port_offset() [all …]
|
D | udp_tunnel_core.c | 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()
|
D | raw.c | 96 hlist = &h->ht[raw_hashfunc(sock_net(sk), inet_sk(sk)->inet_num)]; in raw_hash_sk() 122 const struct inet_sock *inet = inet_sk(sk); in raw_v4_match() 203 struct inet_sock *inet = inet_sk(sk); in raw_err() 324 struct inet_sock *inet = inet_sk(sk); in raw_send_hdrinc() 476 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 …]
|
D | inet_connection_sock.c | 135 const struct inet_sock *inet = inet_sk(sk); in inet_sk_get_local_port_range() 827 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock() 1152 inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port; in inet_csk_clone_lock() 1153 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock() 1154 inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); in inet_csk_clone_lock() 1159 inet_sk(newsk)->mc_list = NULL; in inet_csk_clone_lock() 1196 WARN_ON(inet_sk(sk)->inet_num && !inet_csk(sk)->icsk_bind_hash); in inet_csk_destroy_sock() 1220 inet_sk(sk)->inet_num = 0; in inet_csk_prepare_forced_close() 1237 struct inet_sock *inet = inet_sk(sk); in inet_csk_listen_start() 1445 const struct inet_sock *inet = inet_sk(sk); in inet_csk_addr2sockaddr() [all …]
|
D | datagram.c | 21 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 | xfrm4_output.c | 45 inet_sk(skb->sk)->inet_dport, mtu); in xfrm4_local_error()
|
D | ip_sockglue.c | 174 unsigned long flags = inet_cmsg_flags(inet_sk(sk)); in ip_cmsg_recv_offset() 352 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 572 if (inet_cmsg_flags(inet_sk(sk))) in ip_recv_error() 592 val |= inet_sk(sk)->tos & INET_ECN_MASK; in __ip_sock_set_tos() 594 if (inet_sk(sk)->tos != val) { in __ip_sock_set_tos() 595 inet_sk(sk)->tos = val; in __ip_sock_set_tos() 626 inet_sk(sk)->pmtudisc = val; in ip_sock_set_mtu_discover() 897 struct inet_sock *inet = inet_sk(sk); in do_ip_setsockopt() 1515 struct inet_sock *inet = inet_sk(sk); in do_ip_getsockopt() 1735 val = inet_sk(sk)->inet_num; in do_ip_getsockopt()
|
D | tcp_metrics.c | 301 inetpeer_set_addr_v4(&saddr, inet_sk(sk)->inet_saddr); in tcp_get_metrics() 302 inetpeer_set_addr_v4(&daddr, inet_sk(sk)->inet_daddr); in tcp_get_metrics() 303 hash = ipv4_addr_hash(inet_sk(sk)->inet_daddr); in tcp_get_metrics() 308 inetpeer_set_addr_v4(&saddr, inet_sk(sk)->inet_saddr); in tcp_get_metrics() 309 inetpeer_set_addr_v4(&daddr, inet_sk(sk)->inet_daddr); in tcp_get_metrics() 310 hash = ipv4_addr_hash(inet_sk(sk)->inet_daddr); in tcp_get_metrics()
|
D | af_inet.c | 135 struct inet_sock *inet = inet_sk(sk); in inet_sock_destruct() 178 inet = inet_sk(sk); in inet_autobind() 333 inet = inet_sk(sk); in inet_create() 473 struct inet_sock *inet = inet_sk(sk); in __inet_bind() 588 if (data_race(!inet_sk(sk)->inet_num) && inet_autobind(sk)) in inet_dgram_connect() 795 struct inet_sock *inet = inet_sk(sk); in inet_getname() 831 if (data_race(!inet_sk(sk)->inet_num) && !sk->sk_prot->no_autobind && in inet_send_prepare() 1249 struct inet_sock *inet = inet_sk(sk); in inet_sk_reselect_saddr() 1304 struct inet_sock *inet = inet_sk(sk); in inet_sk_rebuild_header()
|
D | udp.c | 317 inet_sk(sk)->inet_num = snum; in udp_lib_get_port() 323 inet_sk(sk)->inet_num = 0; in udp_lib_get_port() 359 ipv4_portaddr_hash(sock_net(sk), inet_sk(sk)->inet_rcv_saddr, 0); in udp_v4_get_port() 385 inet = inet_sk(sk); in compute_score() 571 const struct inet_sock *inet = inet_sk(sk); in __udp_is_mcast_sock() 737 inet = inet_sk(sk); in __udp4_lib_err() 890 struct inet_sock *inet = inet_sk(sk); in udp_send_skb() 983 struct inet_sock *inet = inet_sk(sk); in udp_push_pending_frames() 1040 struct inet_sock *inet = inet_sk(sk); in udp_sendmsg() 1793 struct inet_sock *inet = inet_sk(sk); in udp_recvmsg() [all …]
|
/Linux-v6.6/net/l2tp/ |
D | l2tp_ip.c | 52 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.6/net/ipv6/ |
D | raw.c | 71 if (inet_sk(sk)->inet_num != num || in raw_v6_match() 212 struct inet_sock *inet = inet_sk(sk); in rawv6_bind() 381 struct inet_sock *inet = inet_sk(sk); in rawv6_rcv() 523 total_len = inet_sk(sk)->cork.base.length; in rawv6_push_pending_frames() 740 struct inet_sock *inet = inet_sk(sk); in rawv6_sendmsg() 1000 if (inet_sk(sk)->inet_num == IPPROTO_ICMPV6 && in do_rawv6_setsockopt() 1039 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_setsockopt() 1100 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_getsockopt() 1163 if (inet_sk(sk)->inet_num == IPPROTO_RAW) in rawv6_close() 1180 switch (inet_sk(sk)->inet_num) { in rawv6_init_sk() [all …]
|
D | inet6_hashtables.c | 100 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score() 269 struct inet_sock *inet = inet_sk(sk); in __inet6_check_established() 331 const struct inet_sock *inet = inet_sk(sk); in inet6_sk_port_offset() 343 if (!inet_sk(sk)->inet_num) in inet6_hash_connect()
|
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()
|
/Linux-v6.6/include/trace/events/ |
D | tcp.h | 70 const struct inet_sock *inet = inet_sk(sk); 140 struct inet_sock *inet = inet_sk(sk); 265 const struct inet_sock *inet = inet_sk(sk); 393 struct inet_sock *inet = inet_sk(sk);
|
D | udp.h | 24 __entry->lport = inet_sk(sk)->inet_num;
|
/Linux-v6.6/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()
|
/Linux-v6.6/net/dccp/ |
D | ipv4.c | 48 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() 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() 514 inet_sk(sk)->tos); in dccp_v4_send_response() 560 inet_sk(ctl_sk)->tos); in dccp_v4_ctl_send_reset()
|
/Linux-v6.6/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() 429 __u8 tos = inet_sk(sk)->tos; in sctp_v4_get_dst() 599 newinet = inet_sk(newsk); in sctp_v4_create_accept_sk() 1059 struct inet_sock *inet = inet_sk(sk); in sctp_v4_xmit()
|