/Linux-v4.19/net/ipv4/ |
D | datagram.c | 25 struct inet_sock *inet = inet_sk(sk); in __ip4_datagram_connect() local 43 saddr = inet->inet_saddr; in __ip4_datagram_connect() 46 oif = inet->mc_index; in __ip4_datagram_connect() 48 saddr = inet->mc_addr; in __ip4_datagram_connect() 50 fl4 = &inet->cork.fl.u.ip4; in __ip4_datagram_connect() 54 inet->inet_sport, usin->sin_port, sk); in __ip4_datagram_connect() 67 if (!inet->inet_saddr) in __ip4_datagram_connect() 68 inet->inet_saddr = fl4->saddr; /* Update source address */ in __ip4_datagram_connect() 69 if (!inet->inet_rcv_saddr) { in __ip4_datagram_connect() 70 inet->inet_rcv_saddr = fl4->saddr; in __ip4_datagram_connect() [all …]
|
D | ip_sockglue.c | 176 struct inet_sock *inet = inet_sk(sk); in ip_cmsg_recv_offset() local 177 unsigned int flags = inet->cmsg_flags; in ip_cmsg_recv_offset() 423 struct inet_sock *inet = inet_sk(sk); in ip_local_error() local 428 if (!inet->recverr) in ip_local_error() 593 struct inet_sock *inet = inet_sk(sk); in do_ip_setsockopt() local 658 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt() 660 if (inet->is_icsk) { in do_ip_setsockopt() 666 inet->inet_daddr != LOOPBACK4_IPV6)) { in do_ip_setsockopt() 677 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt() 684 inet->cmsg_flags |= IP_CMSG_PKTINFO; in do_ip_setsockopt() [all …]
|
D | af_inet.c | 136 struct inet_sock *inet = inet_sk(sk); in inet_sock_destruct() local 158 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 177 struct inet_sock *inet; in inet_autobind() local 180 inet = inet_sk(sk); in inet_autobind() 181 if (!inet->inet_num) { in inet_autobind() 186 inet->inet_sport = htons(inet->inet_num); in inet_autobind() 252 struct inet_sock *inet; in inet_create() local 329 inet = inet_sk(sk); in inet_create() 330 inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) != 0; in inet_create() 332 inet->nodefrag = 0; in inet_create() [all …]
|
D | raw.c | 129 struct inet_sock *inet = inet_sk(sk); in __raw_v4_lookup() local 131 if (net_eq(sock_net(sk), net) && inet->inet_num == num && in __raw_v4_lookup() 132 !(inet->inet_daddr && inet->inet_daddr != raddr) && in __raw_v4_lookup() 133 !(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) && in __raw_v4_lookup() 232 struct inet_sock *inet = inet_sk(sk); in raw_err() local 250 if (!inet->recverr && sk->sk_state != TCP_ESTABLISHED) in raw_err() 271 harderr = inet->pmtudisc != IP_PMTUDISC_DONT; in raw_err() 276 if (inet->recverr) { in raw_err() 280 if (inet->hdrincl) in raw_err() 285 if (inet->recverr || harderr) { in raw_err() [all …]
|
D | inet_timewait_sock.c | 103 const struct inet_sock *inet = inet_sk(sk); in inet_twsk_hashdance() local 112 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance() 166 const struct inet_sock *inet = inet_sk(sk); in inet_twsk_alloc() local 170 tw->tw_daddr = inet->inet_daddr; in inet_twsk_alloc() 171 tw->tw_rcv_saddr = inet->inet_rcv_saddr; in inet_twsk_alloc() 173 tw->tw_tos = inet->tos; in inet_twsk_alloc() 174 tw->tw_num = inet->inet_num; in inet_twsk_alloc() 177 tw->tw_sport = inet->inet_sport; in inet_twsk_alloc() 178 tw->tw_dport = inet->inet_dport; in inet_twsk_alloc() 184 tw->tw_transparent = inet->transparent; in inet_twsk_alloc()
|
D | udp.c | 373 struct inet_sock *inet; in compute_score() local 381 inet = inet_sk(sk); in compute_score() 383 if (inet->inet_rcv_saddr) { in compute_score() 384 if (inet->inet_rcv_saddr != daddr) in compute_score() 389 if (inet->inet_daddr) { in compute_score() 390 if (inet->inet_daddr != saddr) in compute_score() 395 if (inet->inet_dport) { in compute_score() 396 if (inet->inet_dport != sport) in compute_score() 572 struct inet_sock *inet = inet_sk(sk); in __udp_is_mcast_sock() local 576 (inet->inet_daddr && inet->inet_daddr != rmt_addr) || in __udp_is_mcast_sock() [all …]
|
D | ip_output.c | 130 static inline int ip_select_ttl(struct inet_sock *inet, struct dst_entry *dst) in ip_select_ttl() argument 132 int ttl = inet->uc_ttl; in ip_select_ttl() 146 struct inet_sock *inet = inet_sk(sk); in ip_build_and_send_pkt() local 157 iph->tos = inet->tos; in ip_build_and_send_pkt() 158 iph->ttl = ip_select_ttl(inet, &rt->dst); in ip_build_and_send_pkt() 429 struct inet_sock *inet = inet_sk(sk); in __ip_queue_xmit() local 441 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit() 453 daddr = inet->inet_daddr; in __ip_queue_xmit() 462 daddr, inet->inet_saddr, in __ip_queue_xmit() 463 inet->inet_dport, in __ip_queue_xmit() [all …]
|
D | inet_hashtables.c | 231 struct inet_sock *inet = inet_sk(sk); in compute_score() local 233 if (net_eq(sock_net(sk), net) && inet->inet_num == hnum && in compute_score() 235 __be32 rcv_saddr = inet->inet_rcv_saddr; in compute_score() 444 struct inet_sock *inet = inet_sk(sk); in __inet_check_established() local 445 __be32 daddr = inet->inet_rcv_saddr; in __inet_check_established() 446 __be32 saddr = inet->inet_daddr; in __inet_check_established() 451 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet_check_established() 453 saddr, inet->inet_dport); in __inet_check_established() 480 inet->inet_num = lport; in __inet_check_established() 481 inet->inet_sport = htons(lport); in __inet_check_established() [all …]
|
D | inet_connection_sock.c | 872 struct inet_sock *inet = inet_sk(sk); in inet_csk_listen_start() local 887 if (!sk->sk_prot->get_port(sk, inet->inet_num)) { in inet_csk_listen_start() 888 inet->inet_sport = htons(inet->inet_num); in inet_csk_listen_start() 1020 const struct inet_sock *inet = inet_sk(sk); in inet_csk_addr2sockaddr() local 1023 sin->sin_addr.s_addr = inet->inet_daddr; in inet_csk_addr2sockaddr() 1024 sin->sin_port = inet->inet_dport; in inet_csk_addr2sockaddr() 1058 const struct inet_sock *inet = inet_sk(sk); in inet_csk_rebuild_route() local 1060 __be32 daddr = inet->inet_daddr; in inet_csk_rebuild_route() 1065 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route() 1070 inet->inet_saddr, inet->inet_dport, in inet_csk_rebuild_route() [all …]
|
D | ping.c | 703 struct inet_sock *inet = inet_sk(sk); in ping_v4_sendmsg() local 714 pr_debug("ping_v4_sendmsg(sk=%p,sk->num=%u)\n", inet, inet->inet_num); in ping_v4_sendmsg() 736 daddr = inet->inet_daddr; in ping_v4_sendmsg() 740 ipcm_init_sk(&ipc, inet); in ping_v4_sendmsg() 755 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg() 774 tos = get_rttos(&ipc, inet); in ping_v4_sendmsg() 783 ipc.oif = inet->mc_index; in ping_v4_sendmsg() 785 saddr = inet->mc_addr; in ping_v4_sendmsg() 787 ipc.oif = inet->uc_index; in ping_v4_sendmsg() 821 pfh.icmph.un.echo.id = inet->inet_sport; in ping_v4_sendmsg() [all …]
|
D | tcp_ipv4.c | 205 struct inet_sock *inet = inet_sk(sk); in tcp_v4_connect() local 222 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect() 230 orig_sport = inet->inet_sport; in tcp_v4_connect() 232 fl4 = &inet->cork.fl.u.ip4; in tcp_v4_connect() 233 rt = ip_route_connect(fl4, nexthop, inet->inet_saddr, in tcp_v4_connect() 252 if (!inet->inet_saddr) in tcp_v4_connect() 253 inet->inet_saddr = fl4->saddr; in tcp_v4_connect() 254 sk_rcv_saddr_set(sk, inet->inet_saddr); in tcp_v4_connect() 256 if (tp->rx_opt.ts_recent_stamp && inet->inet_daddr != daddr) { in tcp_v4_connect() 264 inet->inet_dport = usin->sin_port; in tcp_v4_connect() [all …]
|
/Linux-v4.19/include/trace/events/ |
D | net_probe_common.h | 6 #define TP_STORE_ADDR_PORTS_V4(__entry, inet, sk) \ argument 11 v4->sin_port = inet->inet_sport; \ 12 v4->sin_addr.s_addr = inet->inet_saddr; \ 15 v4->sin_port = inet->inet_dport; \ 16 v4->sin_addr.s_addr = inet->inet_daddr; \ 21 #define TP_STORE_ADDR_PORTS(__entry, inet, sk) \ argument 27 v6->sin6_port = inet->inet_sport; \ 31 v6->sin6_port = inet->inet_dport; \ 34 TP_STORE_ADDR_PORTS_V4(__entry, inet, sk); \ 39 #define TP_STORE_ADDR_PORTS(__entry, inet, sk) \ argument [all …]
|
D | tcp.h | 68 struct inet_sock *inet = inet_sk(sk); 74 __entry->sport = ntohs(inet->inet_sport); 75 __entry->dport = ntohs(inet->inet_dport); 78 *p32 = inet->inet_saddr; 81 *p32 = inet->inet_daddr; 83 TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr, 133 struct inet_sock *inet = inet_sk(sk); 138 __entry->sport = ntohs(inet->inet_sport); 139 __entry->dport = ntohs(inet->inet_dport); 142 *p32 = inet->inet_saddr; [all …]
|
D | sock.h | 158 struct inet_sock *inet = inet_sk(sk); 168 __entry->sport = ntohs(inet->inet_sport); 169 __entry->dport = ntohs(inet->inet_dport); 172 *p32 = inet->inet_saddr; 175 *p32 = inet->inet_daddr; 187 ipv6_addr_set_v4mapped(inet->inet_saddr, pin6); 189 ipv6_addr_set_v4mapped(inet->inet_daddr, pin6);
|
/Linux-v4.19/net/l2tp/ |
D | l2tp_ip.c | 36 struct inet_sock inet; member 58 const struct inet_sock *inet = inet_sk(sk); in __l2tp_ip_bind_lookup() local 66 if (inet->inet_rcv_saddr && laddr && in __l2tp_ip_bind_lookup() 67 inet->inet_rcv_saddr != laddr) in __l2tp_ip_bind_lookup() 70 if (inet->inet_daddr && raddr && inet->inet_daddr != raddr) in __l2tp_ip_bind_lookup() 248 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_bind() local 275 inet->inet_rcv_saddr = inet->inet_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind() 277 inet->inet_saddr = 0; /* Use device */ in l2tp_ip_bind() 351 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_getname() local 358 if (!inet->inet_dport) in l2tp_ip_getname() [all …]
|
/Linux-v4.19/net/ipv6/ |
D | af_inet6.c | 113 struct inet_sock *inet; in inet6_create() local 193 inet = inet_sk(sk); in inet6_create() 194 inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) != 0; in inet6_create() 197 inet->inet_num = protocol; in inet6_create() 199 inet->hdrincl = 1; in inet6_create() 219 inet->uc_ttl = -1; in inet6_create() 221 inet->mc_loop = 1; in inet6_create() 222 inet->mc_ttl = 1; in inet6_create() 223 inet->mc_index = 0; in inet6_create() 224 inet->mc_list = NULL; in inet6_create() [all …]
|
D | ping.c | 54 struct inet_sock *inet = inet_sk(sk); in ping_v6_sendmsg() local 67 pr_debug("ping_v6_sendmsg(sk=%p,sk->num=%u)\n", inet, inet->inet_num); in ping_v6_sendmsg() 137 pfh.icmph.un.echo.id = inet->inet_sport; in ping_v6_sendmsg() 208 struct inet_sock *inet = inet_sk(v); in ping_v6_seq_show() local 209 __u16 srcp = ntohs(inet->inet_sport); in ping_v6_seq_show() 210 __u16 destp = ntohs(inet->inet_dport); in ping_v6_seq_show()
|
D | inet6_hashtables.c | 253 struct inet_sock *inet = inet_sk(sk); in __inet6_check_established() local 259 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet6_check_established() 261 inet->inet_dport); in __inet6_check_established() 288 inet->inet_num = lport; in __inet6_check_established() 289 inet->inet_sport = htons(lport); in __inet6_check_established() 315 const struct inet_sock *inet = inet_sk(sk); in inet6_sk_port_offset() local 319 inet->inet_dport); in inet6_sk_port_offset()
|
/Linux-v4.19/net/dccp/ |
D | ipv4.c | 45 struct inet_sock *inet = inet_sk(sk); in dccp_v4_connect() local 64 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect() 72 orig_sport = inet->inet_sport; in dccp_v4_connect() 74 fl4 = &inet->cork.fl.u.ip4; in dccp_v4_connect() 75 rt = ip_route_connect(fl4, nexthop, inet->inet_saddr, in dccp_v4_connect() 90 if (inet->inet_saddr == 0) in dccp_v4_connect() 91 inet->inet_saddr = fl4->saddr; in dccp_v4_connect() 92 sk_rcv_saddr_set(sk, inet->inet_saddr); in dccp_v4_connect() 93 inet->inet_dport = usin->sin_port; in dccp_v4_connect() 111 inet->inet_sport, inet->inet_dport, sk); in dccp_v4_connect() [all …]
|
D | trace.h | 37 const struct inet_sock *inet = inet_sk(sk); 46 TP_STORE_ADDR_PORTS(__entry, inet, sk); 49 __entry->sport = ntohs(inet->inet_sport); 50 __entry->dport = ntohs(inet->inet_dport);
|
/Linux-v4.19/include/linux/ |
D | udp.h | 44 struct inet_sock inet; member 45 #define udp_port_hash inet.sk.__sk_common.skc_u16hashes[0] 46 #define udp_portaddr_hash inet.sk.__sk_common.skc_u16hashes[1] 47 #define udp_portaddr_node inet.sk.__sk_common.skc_portaddr_node
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls.c | 41 struct inet_sock *inet = inet_sk(sk); in mlx5e_tls_set_ipv4_flow() local 45 &inet->inet_daddr, MLX5_FLD_SZ_BYTES(ipv4_layout, ipv4)); in mlx5e_tls_set_ipv4_flow() 47 &inet->inet_rcv_saddr, MLX5_FLD_SZ_BYTES(ipv4_layout, ipv4)); in mlx5e_tls_set_ipv4_flow() 65 struct inet_sock *inet = inet_sk(sk); in mlx5e_tls_set_flow_tcp_ports() local 67 memcpy(MLX5_ADDR_OF(tls_flow, flow, src_port), &inet->inet_sport, in mlx5e_tls_set_flow_tcp_ports() 69 memcpy(MLX5_ADDR_OF(tls_flow, flow, dst_port), &inet->inet_dport, in mlx5e_tls_set_flow_tcp_ports()
|
/Linux-v4.19/net/rds/ |
D | tcp_listen.c | 130 struct inet_sock *inet; in rds_tcp_accept_one() local 169 inet = inet_sk(new_sock->sk); in rds_tcp_accept_one() 175 ipv6_addr_set_v4mapped(inet->inet_saddr, &saddr); in rds_tcp_accept_one() 176 ipv6_addr_set_v4mapped(inet->inet_daddr, &daddr); in rds_tcp_accept_one() 182 my_addr, ntohs(inet->inet_sport), in rds_tcp_accept_one() 183 peer_addr, ntohs(inet->inet_dport)); in rds_tcp_accept_one()
|
/Linux-v4.19/security/ |
D | lsm_audit.c | 329 struct inet_sock *inet = inet_sk(sk); in dump_common_audit_data() local 331 print_ipv4_addr(ab, inet->inet_rcv_saddr, in dump_common_audit_data() 332 inet->inet_sport, in dump_common_audit_data() 334 print_ipv4_addr(ab, inet->inet_daddr, in dump_common_audit_data() 335 inet->inet_dport, in dump_common_audit_data() 341 struct inet_sock *inet = inet_sk(sk); in dump_common_audit_data() local 344 inet->inet_sport, in dump_common_audit_data() 347 inet->inet_dport, in dump_common_audit_data()
|
/Linux-v4.19/fs/ocfs2/cluster/ |
D | netdebug.c | 318 struct inet_sock *inet = NULL; in sc_show_sock_container() local 326 inet = inet_sk(sc->sc_sock->sk); in sc_show_sock_container() 328 saddr = (__force __be32)inet->inet_saddr; in sc_show_sock_container() 329 daddr = (__force __be32)inet->inet_daddr; in sc_show_sock_container() 330 sport = (__force __be16)inet->inet_sport; in sc_show_sock_container() 331 dport = (__force __be16)inet->inet_dport; in sc_show_sock_container() 353 &saddr, inet ? ntohs(sport) : 0, in sc_show_sock_container() 354 &daddr, inet ? ntohs(dport) : 0, in sc_show_sock_container()
|