Home
last modified time | relevance | path

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

12345

/linux/include/net/
A Dinet_sock.h286 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk() function
295 memcpy(inet_sk(sk_to) + 1, inet_sk(sk_from) + 1, in __inet_sk_copy_descendant()
346 if (inet_sk(sk)->transparent || inet_sk(sk)->hdrincl) in inet_sk_flowi_flags()
353 inet_sk(sk)->convert_csum++; in inet_inc_convert_csum()
358 if (inet_sk(sk)->convert_csum > 0) in inet_dec_convert_csum()
359 inet_sk(sk)->convert_csum--; in inet_dec_convert_csum()
364 return !!inet_sk(sk)->convert_csum; in inet_get_convert_csum()
A Dip.h241 return __ip_make_skb(sk, fl4, &sk->sk_write_queue, &inet_sk(sk)->cork.base); in ip_finish_skb()
417 u8 pmtudisc = READ_ONCE(inet_sk(sk)->pmtudisc); in ip_dont_fragment()
426 return inet_sk(sk)->pmtudisc != IP_PMTUDISC_INTERFACE && in ip_sk_accept_pmtu()
427 inet_sk(sk)->pmtudisc != IP_PMTUDISC_OMIT; in ip_sk_accept_pmtu()
432 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_PROBE; in ip_sk_use_pmtu()
437 return inet_sk(sk)->pmtudisc < IP_PMTUDISC_DO || in ip_sk_ignore_df()
438 inet_sk(sk)->pmtudisc == IP_PMTUDISC_OMIT; in ip_sk_ignore_df()
534 if (sk && inet_sk(sk)->inet_daddr) { in ip_select_ident_segs()
535 iph->id = htons(inet_sk(sk)->inet_id); in ip_select_ident_segs()
536 inet_sk(sk)->inet_id += segs; in ip_select_ident_segs()
[all …]
/linux/tools/testing/selftests/bpf/progs/
A 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/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A 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()
A 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()
/linux/net/ipv4/
A 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()
153 struct inet_sock *isk = inet_sk(sk); in ping_unhash()
190 isk = inet_sk(sk); in ping_lookup()
287 inet_sk(sk), inet_sk(sk)->inet_num); in ping_close()
375 struct inet_sock *isk = inet_sk(sk); in ping_set_saddr()
394 struct inet_sock *isk = inet_sk(sk); in ping_bind()
510 inet_sock = inet_sk(sk); in ping_err()
847 struct inet_sock *isk = inet_sk(sk); in ping_recvmsg()
[all …]
A Dudp_tunnel_core.c66 inet_sk(sk)->mc_loop = 0; in setup_udp_tunnel_sock()
92 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_push_rx_port()
106 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_drop_rx_port()
122 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_notify_add_rx_port()
142 ti.port = inet_sk(sk)->inet_sport; in udp_tunnel_notify_del_rx_port()
A Dinet_hashtables.c98 inet_sk(sk)->inet_num = snum; in inet_bind_hash()
118 inet_sk(sk)->inet_num = 0; in __inet_put_port()
134 unsigned short port = inet_sk(child)->inet_num; in __inet_inherit_port()
187 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk()
191 inet_sk(sk)->inet_rcv_saddr, in inet_lhash2_bucket_sk()
192 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk()
446 struct inet_sock *inet = inet_sk(sk); in __inet_check_established()
509 const struct inet_sock *inet = inet_sk(sk); in inet_sk_port_offset()
733 int port = inet_sk(sk)->inet_num; in __inet_hash_connect()
833 inet_sk(sk)->inet_sport = htons(port); in __inet_hash_connect()
[all …]
A 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()
754 struct inet_sock *inet = inet_sk(sk); in raw_recvmsg()
808 if (inet_sk(sk)->inet_num == IPPROTO_ICMP) in raw_sk_init()
845 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_setsockopt()
865 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_getsockopt()
[all …]
A Dip_sockglue.c174 struct inet_sock *inet = inet_sk(sk); in ip_cmsg_recv_offset()
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()
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()
621 inet_sk(sk)->pmtudisc = val; in ip_sock_set_mtu_discover()
894 struct inet_sock *inet = inet_sk(sk); in do_ip_setsockopt()
[all …]
A Dinet_connection_sock.c638 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock()
964 inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port; in inet_csk_clone_lock()
965 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock()
966 inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); in inet_csk_clone_lock()
971 inet_sk(newsk)->mc_list = NULL; in inet_csk_clone_lock()
1008 WARN_ON(inet_sk(sk)->inet_num && !inet_csk(sk)->icsk_bind_hash); in inet_csk_destroy_sock()
1034 inet_sk(sk)->inet_num = 0; in inet_csk_prepare_forced_close()
1041 struct inet_sock *inet = inet_sk(sk); in inet_csk_listen_start()
1244 const struct inet_sock *inet = inet_sk(sk); in inet_csk_addr2sockaddr()
1254 const struct inet_sock *inet = inet_sk(sk); in inet_csk_rebuild_route()
[all …]
A Ddatagram.c21 struct inet_sock *inet = inet_sk(sk); in __ip4_datagram_connect()
101 const struct inet_sock *inet = inet_sk(sk); in ip4_datagram_release_cb()
A Daf_inet.c133 struct inet_sock *inet = inet_sk(sk); in inet_sock_destruct()
177 inet = inet_sk(sk); in inet_autobind()
326 inet = inet_sk(sk); in inet_create()
463 struct inet_sock *inet = inet_sk(sk); in __inet_bind()
574 if (data_race(!inet_sk(sk)->inet_num) && inet_autobind(sk)) in inet_dgram_connect()
643 if (inet_sk(sk)->defer_connect) in __inet_stream_connect()
666 if (!err && inet_sk(sk)->defer_connect) in __inet_stream_connect()
768 struct inet_sock *inet = inet_sk(sk); in inet_getname()
804 if (data_race(!inet_sk(sk)->inet_num) && !sk->sk_prot->no_autobind && in inet_send_prepare()
1222 struct inet_sock *inet = inet_sk(sk); in inet_sk_reselect_saddr()
[all …]
A Dudp.c307 inet_sk(sk)->inet_num = snum; in udp_lib_get_port()
313 inet_sk(sk)->inet_num = 0; in udp_lib_get_port()
375 inet = inet_sk(sk); in compute_score()
577 struct inet_sock *inet = inet_sk(sk); in __udp_is_mcast_sock()
743 inet = inet_sk(sk); in __udp4_lib_err()
893 struct inet_sock *inet = inet_sk(sk); in udp_send_skb()
985 struct inet_sock *inet = inet_sk(sk); in udp_push_pending_frames()
2018 inet_sk(sk)->inet_num = 0; in udp_lib_unhash()
2075 inet_sk(sk)->inet_rcv_saddr, in udp_v4_rehash()
2076 inet_sk(sk)->inet_num); in udp_v4_rehash()
[all …]
A Dtcp_metrics.c281 inetpeer_set_addr_v4(&saddr, inet_sk(sk)->inet_saddr); in tcp_get_metrics()
282 inetpeer_set_addr_v4(&daddr, inet_sk(sk)->inet_daddr); in tcp_get_metrics()
283 hash = ipv4_addr_hash(inet_sk(sk)->inet_daddr); in tcp_get_metrics()
288 inetpeer_set_addr_v4(&saddr, inet_sk(sk)->inet_saddr); in tcp_get_metrics()
289 inetpeer_set_addr_v4(&daddr, inet_sk(sk)->inet_daddr); in tcp_get_metrics()
290 hash = ipv4_addr_hash(inet_sk(sk)->inet_daddr); in tcp_get_metrics()
/linux/net/ipv6/
A 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()
558 total_len = inet_sk(sk)->cork.base.length; in rawv6_push_pending_frames()
772 struct inet_sock *inet = inet_sk(sk); in rawv6_sendmsg()
1033 inet_sk(sk)->hdrincl = !!val; in do_rawv6_setsockopt()
1101 val = inet_sk(sk)->hdrincl; in do_rawv6_getsockopt()
1199 if (inet_sk(sk)->inet_num == IPPROTO_RAW) in rawv6_close()
1218 switch (inet_sk(sk)->inet_num) { in rawv6_init_sk()
[all …]
A 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()
A 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()
518 inet_sk(sk)->inet_num) in do_ipv6_setsockopt()
636 inet_sk(sk)->transparent = valbool; in do_ipv6_setsockopt()
644 inet_sk(sk)->freebind = valbool; in do_ipv6_setsockopt()
833 if (inet_sk(sk)->is_icsk) in do_ipv6_setsockopt()
1329 val = inet_sk(sk)->transparent; in do_ipv6_getsockopt()
1333 val = inet_sk(sk)->freebind; in do_ipv6_getsockopt()
A 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/net/l2tp/
A 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()
/linux/net/dccp/
A Dipv4.c48 struct inet_sock *inet = inet_sk(sk); in dccp_v4_connect()
155 const struct inet_sock *inet = inet_sk(sk); in dccp_do_pmtu_discovery()
356 inet = inet_sk(sk); in dccp_v4_err()
376 const struct inet_sock *inet = inet_sk(sk); in dccp_v4_send_check()
418 newinet = inet_sk(newsk); in dccp_v4_request_recv_sock()
506 inet_sk(sk)->tos); in dccp_v4_send_response()
552 inet_sk(ctl_sk)->tos); in dccp_v4_ctl_send_reset()
/linux/drivers/net/wireguard/
A 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()
/linux/net/mptcp/
A Dsubflow.c119 return inet_sk(sk)->inet_sport != inet_sk((struct sock *)msk)->inet_sport; in subflow_use_different_sport()
217 ntohs(inet_sk(sk_listener)->inet_sport), in subflow_check_req()
218 ntohs(inet_sk((struct sock *)subflow_req->msk)->inet_sport)); in subflow_check_req()
374 return inet_sk(sk)->inet_dport != inet_sk((struct sock *)msk)->inet_dport; in subflow_use_different_dport()
470 ntohs(inet_sk(sk)->inet_dport), in subflow_finish_connect()
471 ntohs(inet_sk(parent)->inet_dport)); in subflow_finish_connect()
752 ntohs(inet_sk(sk)->inet_sport), in subflow_syn_recv_sock()
753 ntohs(inet_sk((struct sock *)owner)->inet_sport)); in subflow_syn_recv_sock()
/linux/net/sctp/
A 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()
1054 struct inet_sock *inet = inet_sk(sk); in sctp_v4_xmit()
/linux/include/trace/events/
A Dudp.h24 __entry->lport = inet_sk(sk)->inet_num;

Completed in 51 milliseconds

12345