Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/include/net/
Dinet_sock.h287 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk() function
296 memcpy(inet_sk(sk_to) + 1, inet_sk(sk_from) + 1, in __inet_sk_copy_descendant()
347 if (inet_sk(sk)->transparent || inet_sk(sk)->hdrincl) in inet_sk_flowi_flags()
354 inet_sk(sk)->convert_csum++; in inet_inc_convert_csum()
359 if (inet_sk(sk)->convert_csum > 0) in inet_dec_convert_csum()
360 inet_sk(sk)->convert_csum--; in inet_dec_convert_csum()
365 return !!inet_sk(sk)->convert_csum; in inet_get_convert_csum()
Dip.h240 return __ip_make_skb(sk, fl4, &sk->sk_write_queue, &inet_sk(sk)->cork.base); in ip_finish_skb()
412 u8 pmtudisc = READ_ONCE(inet_sk(sk)->pmtudisc); in ip_dont_fragment()
421 return inet_sk(sk)->pmtudisc != IP_PMTUDISC_INTERFACE && in ip_sk_accept_pmtu()
422 inet_sk(sk)->pmtudisc != IP_PMTUDISC_OMIT; in ip_sk_accept_pmtu()
427 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_PROBE; in ip_sk_use_pmtu()
432 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_DO || in ip_sk_ignore_df()
433 inet_sk(sk)->pmtudisc == IP_PMTUDISC_OMIT; in ip_sk_ignore_df()
512 if (sk && inet_sk(sk)->inet_daddr) { in ip_select_ident_segs()
513 iph->id = htons(inet_sk(sk)->inet_id); in ip_select_ident_segs()
514 inet_sk(sk)->inet_id += segs; in ip_select_ident_segs()
[all …]
Dinet_ecn.h55 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit()
62 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
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()
Dtls.c41 struct inet_sock *inet = inet_sk(sk); in mlx5e_tls_set_ipv4_flow()
65 struct inet_sock *inet = inet_sk(sk); in mlx5e_tls_set_flow_tcp_ports()
/kernel/linux/linux-5.10/net/ipv4/
Dudp_tunnel_core.c69 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()
Dping.c84 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()
190 isk = inet_sk(sk); in ping_lookup()
288 inet_sk(sk), inet_sk(sk)->inet_num); in ping_close()
376 struct inet_sock *isk = inet_sk(sk); in ping_set_saddr()
395 struct inet_sock *isk = inet_sk(sk); in ping_bind()
509 inet_sock = inet_sk(sk); in ping_err()
[all …]
Dinet_hashtables.c110 inet_sk(sk)->inet_num = snum; in inet_bind_hash()
121 const int bhash = inet_bhashfn(sock_net(sk), inet_sk(sk)->inet_num, in __inet_put_port()
130 inet_sk(sk)->inet_num = 0; in __inet_put_port()
146 unsigned short port = inet_sk(child)->inet_num; in __inet_inherit_port()
199 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk()
203 inet_sk(sk)->inet_rcv_saddr, in inet_lhash2_bucket_sk()
204 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk()
458 struct inet_sock *inet = inet_sk(sk); in __inet_check_established()
521 const struct inet_sock *inet = inet_sk(sk); in inet_sk_port_offset()
746 int port = inet_sk(sk)->inet_num; in __inet_hash_connect()
[all …]
Dinet_connection_sock.c655 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock()
866 inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port; in inet_csk_clone_lock()
867 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock()
868 inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); in inet_csk_clone_lock()
873 inet_sk(newsk)->mc_list = NULL; in inet_csk_clone_lock()
910 WARN_ON(inet_sk(sk)->inet_num && !inet_csk(sk)->icsk_bind_hash); in inet_csk_destroy_sock()
936 inet_sk(sk)->inet_num = 0; in inet_csk_prepare_forced_close()
953 struct inet_sock *inet = inet_sk(sk); in inet_csk_listen_start()
1105 const struct inet_sock *inet = inet_sk(sk); in inet_csk_addr2sockaddr()
1115 const struct inet_sock *inet = inet_sk(sk); in inet_csk_rebuild_route()
[all …]
Draw.c98 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()
718 struct inet_sock *inet = inet_sk(sk); in raw_bind()
757 struct inet_sock *inet = inet_sk(sk); in raw_recvmsg()
811 if (inet_sk(sk)->inet_num == IPPROTO_ICMP) in raw_sk_init()
848 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_setsockopt()
868 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.c22 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()
Daf_inet.c133 struct inet_sock *inet = inet_sk(sk); in inet_sock_destruct()
181 inet = inet_sk(sk); in inet_autobind()
330 inet = inet_sk(sk); in inet_create()
465 struct inet_sock *inet = inet_sk(sk); in __inet_bind()
580 if (data_race(!inet_sk(sk)->inet_num) && inet_autobind(sk)) in inet_dgram_connect()
649 if (inet_sk(sk)->defer_connect) in __inet_stream_connect()
672 if (!err && inet_sk(sk)->defer_connect) in __inet_stream_connect()
775 struct inet_sock *inet = inet_sk(sk); in inet_getname()
808 if (data_race(!inet_sk(sk)->inet_num) && !sk->sk_prot->no_autobind && in inet_send_prepare()
1229 struct inet_sock *inet = inet_sk(sk); in inet_sk_reselect_saddr()
[all …]
Dxfrm4_output.c45 inet_sk(skb->sk)->inet_dport, mtu); in xfrm4_local_error()
/kernel/linux/linux-5.10/net/ipv6/
Draw.c76 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()
1037 inet_sk(sk)->hdrincl = !!val; in do_rawv6_setsockopt()
1040 if (inet_sk(sk)->inet_num == IPPROTO_ICMPV6 && in do_rawv6_setsockopt()
1079 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_setsockopt()
1105 val = inet_sk(sk)->hdrincl; in do_rawv6_getsockopt()
[all …]
Dinet6_hashtables.c101 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()
Dipv6_sockglue.c63 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()
525 inet_sk(sk)->inet_num) in do_ipv6_setsockopt()
643 inet_sk(sk)->transparent = valbool; in do_ipv6_setsockopt()
651 inet_sk(sk)->freebind = valbool; in do_ipv6_setsockopt()
840 if (inet_sk(sk)->is_icsk) in do_ipv6_setsockopt()
1330 val = inet_sk(sk)->transparent; in do_ipv6_getsockopt()
1334 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()
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_ip.c52 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/
Dudp.h24 __entry->lport = inet_sk(sk)->inet_num;
Dtcp.h69 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/
Dipv4.c41 struct inet_sock *inet = inet_sk(sk); in dccp_v4_connect()
148 const struct inet_sock *inet = inet_sk(sk); in dccp_do_pmtu_discovery()
349 inet = inet_sk(sk); in dccp_v4_err()
369 const struct inet_sock *inet = inet_sk(sk); in dccp_v4_send_check()
411 newinet = inet_sk(newsk); in dccp_v4_request_recv_sock()
499 inet_sk(sk)->tos); in dccp_v4_send_response()
542 inet_sk(ctl_sk)->tos); in dccp_v4_ctl_send_reset()
/kernel/linux/linux-5.10/net/sctp/
Dprotocol.c178 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/
Dsocket.c46 fl.fl4_sport = inet_sk(sock)->inet_sport; in send4()
126 fl.fl6_sport = inet_sk(sock)->inet_sport; in send6()
396 port6.local_udp_port = inet_sk(new4->sk)->inet_sport; in wg_socket_init()
431 wg->incoming_port = ntohs(inet_sk(new4)->inet_sport); in wg_socket_reinit()

12345