Home
last modified time | relevance | path

Searched refs:inet (Results 1 – 25 of 254) sorted by relevance

1234567891011

/linux/tools/testing/selftests/bpf/progs/
A Dbpf_iter_udp4.c29 struct inet_sock *inet; in dump_udp4() local
46 inet = &udp_sk->inet; in dump_udp4()
47 if (inet->sk.sk_family == AF_INET6) in dump_udp4()
50 inet = &udp_sk->inet; in dump_udp4()
51 dest = inet->inet_daddr; in dump_udp4()
52 src = inet->inet_rcv_saddr; in dump_udp4()
53 srcp = bpf_ntohs(inet->inet_sport); in dump_udp4()
54 destp = bpf_ntohs(inet->inet_dport); in dump_udp4()
61 inet->sk.sk_state, in dump_udp4()
65 sock_i_ino(&inet->sk), in dump_udp4()
[all …]
A Dbpf_iter_udp6.c38 struct inet_sock *inet; in dump_udp6() local
54 inet = &udp_sk->inet; in dump_udp6()
55 srcp = bpf_ntohs(inet->inet_sport); in dump_udp6()
56 destp = bpf_ntohs(inet->inet_dport); in dump_udp6()
58 dest = &inet->sk.sk_v6_daddr; in dump_udp6()
59 src = &inet->sk.sk_v6_rcv_saddr; in dump_udp6()
69 inet->sk.sk_state, in dump_udp6()
70 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp6()
73 sock_i_ino(&inet->sk), in dump_udp6()
74 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
[all …]
A Dbpf_iter_tcp4.c79 const struct inet_sock *inet; in dump_tcp_sock() local
89 inet = &icsk->icsk_inet; in dump_tcp_sock()
90 sp = &inet->sk; in dump_tcp_sock()
93 dest = inet->inet_daddr; in dump_tcp_sock()
94 src = inet->inet_rcv_saddr; in dump_tcp_sock()
95 destp = bpf_ntohs(inet->inet_dport); in dump_tcp_sock()
96 srcp = bpf_ntohs(inet->inet_sport); in dump_tcp_sock()
/linux/net/ipv4/
A Ddatagram.c21 struct inet_sock *inet = inet_sk(sk); in __ip4_datagram_connect() local
39 saddr = inet->inet_saddr; in __ip4_datagram_connect()
42 oif = inet->mc_index; in __ip4_datagram_connect()
44 saddr = inet->mc_addr; in __ip4_datagram_connect()
46 fl4 = &inet->cork.fl.u.ip4; in __ip4_datagram_connect()
63 if (!inet->inet_saddr) in __ip4_datagram_connect()
65 if (!inet->inet_rcv_saddr) { in __ip4_datagram_connect()
70 inet->inet_daddr = fl4->daddr; in __ip4_datagram_connect()
75 inet->inet_id = prandom_u32(); in __ip4_datagram_connect()
103 __be32 daddr = inet->inet_daddr; in ip4_datagram_release_cb()
[all …]
A Dip_sockglue.c444 if (!inet->recverr) in ip_local_error()
961 if (inet->is_icsk) { in do_ip_setsockopt()
1054 inet->uc_ttl = val; in do_ip_setsockopt()
1097 inet->mc_ttl = val; in do_ip_setsockopt()
1115 inet->uc_index = 0; in do_ip_setsockopt()
1324 inet->mc_all = val; in do_ip_setsockopt()
1603 val = inet->tos; in do_ip_getsockopt()
1614 val = inet->hdrincl; in do_ip_getsockopt()
1641 val = inet->recverr; in do_ip_getsockopt()
1647 val = inet->mc_ttl; in do_ip_getsockopt()
[all …]
A Daf_inet.c183 inet->inet_sport = htons(inet->inet_num); in inet_autobind()
352 inet->mc_ttl = 1; in inet_create()
353 inet->mc_all = 1; in inet_create()
366 inet->inet_sport = htons(inet->inet_num); in inet_create()
520 inet->inet_rcv_saddr = inet->inet_saddr = addr->sin_addr.s_addr; in __inet_bind()
528 inet->inet_saddr = inet->inet_rcv_saddr = 0; in __inet_bind()
535 inet->inet_saddr = inet->inet_rcv_saddr = 0; in __inet_bind()
545 inet->inet_sport = htons(inet->inet_num); in __inet_bind()
1239 inet->inet_sport, inet->inet_dport, sk); in inet_sk_reselect_saddr()
1255 inet->inet_saddr = inet->inet_rcv_saddr = new_saddr; in inet_sk_reselect_saddr()
[all …]
A Draw.c128 !(inet->inet_daddr && inet->inet_daddr != raddr) && in __raw_v4_lookup()
129 !(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) && in __raw_v4_lookup()
272 if (inet->recverr) { in raw_err()
276 if (inet->hdrincl) in raw_err()
523 hdrincl = inet->hdrincl; in raw_sendmsg()
558 daddr = inet->inet_daddr; in raw_sendmsg()
561 ipcm_init_sk(&ipc, inet); in raw_sendmsg()
610 saddr = inet->mc_addr; in raw_sendmsg()
612 ipc.oif = inet->uc_index; in raw_sendmsg()
738 inet->inet_rcv_saddr = inet->inet_saddr = addr->sin_addr.s_addr; in raw_bind()
[all …]
A Dinet_timewait_sock.c104 const struct inet_sock *inet = inet_sk(sk); in inet_twsk_hashdance() local
113 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance()
167 const struct inet_sock *inet = inet_sk(sk); in inet_twsk_alloc() local
171 tw->tw_daddr = inet->inet_daddr; in inet_twsk_alloc()
172 tw->tw_rcv_saddr = inet->inet_rcv_saddr; in inet_twsk_alloc()
174 tw->tw_tos = inet->tos; in inet_twsk_alloc()
175 tw->tw_num = inet->inet_num; in inet_twsk_alloc()
178 tw->tw_sport = inet->inet_sport; in inet_twsk_alloc()
179 tw->tw_dport = inet->inet_dport; in inet_twsk_alloc()
185 tw->tw_transparent = inet->transparent; in inet_twsk_alloc()
A Dudp.c362 struct inet_sock *inet; in compute_score() local
375 inet = inet_sk(sk); in compute_score()
376 if (inet->inet_daddr) { in compute_score()
581 (inet->inet_daddr && inet->inet_daddr != rmt_addr) || in __udp_is_mcast_sock()
582 (inet->inet_dport != rmt_port && inet->inet_dport) || in __udp_is_mcast_sock()
583 (inet->inet_rcv_saddr && inet->inet_rcv_saddr != loc_addr) || in __udp_is_mcast_sock()
743 inet = inet_sk(sk); in __udp4_lib_err()
785 if (!inet->recverr) { in __udp4_lib_err()
1929 if (inet->cmsg_flags) in udp_recvmsg()
1974 inet->inet_daddr = 0; in __udp_disconnect()
[all …]
A Dip_output.c134 int ttl = inet->uc_ttl; in ip_select_ttl()
149 struct inet_sock *inet = inet_sk(sk); in ip_build_and_send_pkt() local
449 struct inet_sock *inet = inet_sk(sk); in __ip_queue_xmit() local
473 daddr = inet->inet_daddr; in __ip_queue_xmit()
482 daddr, inet->inet_saddr, in __ip_queue_xmit()
483 inet->inet_dport, in __ip_queue_xmit()
484 inet->inet_sport, in __ip_queue_xmit()
953 struct inet_sock *inet = inet_sk(sk); in __ip_append_data() local
1329 if (inet->hdrincl) in ip_append_page()
1338 cork = &inet->cork.base; in ip_append_page()
[all …]
/linux/include/trace/events/
A Dnet_probe_common.h6 #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 …]
A Dtcp.h70 struct inet_sock *inet = inet_sk(sk);
77 __entry->sport = ntohs(inet->inet_sport);
78 __entry->dport = ntohs(inet->inet_dport);
82 *p32 = inet->inet_saddr;
85 *p32 = inet->inet_daddr;
87 TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr,
140 struct inet_sock *inet = inet_sk(sk);
150 *p32 = inet->inet_saddr;
153 *p32 = inet->inet_daddr;
155 TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr,
[all …]
A Dsock.h159 struct inet_sock *inet = inet_sk(sk);
169 __entry->sport = ntohs(inet->inet_sport);
170 __entry->dport = ntohs(inet->inet_dport);
173 *p32 = inet->inet_saddr;
176 *p32 = inet->inet_daddr;
188 ipv6_addr_set_v4mapped(inet->inet_saddr, pin6);
223 struct inet_sock *inet = inet_sk(sk);
230 __entry->sport = ntohs(inet->inet_sport);
231 __entry->dport = ntohs(inet->inet_dport);
234 *p32 = inet->inet_saddr;
[all …]
/linux/tools/testing/selftests/netfilter/
A Dnft_nat.sh86 ip netns exec $ns nft list counter inet filter $counter 1>&2
106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect")
111 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect")
170 ip netns exec ns$i-$sfx nft reset counters inet > /dev/null
904 table inet filter {
1001 $test_inet_nat && test_local_dnat inet
1002 $test_inet_nat && test_local_dnat6 inet
1009 $test_inet_nat && test_masquerade inet $flags
1010 $test_inet_nat && test_masquerade6 inet $flags
1017 $test_inet_nat && test_redirect inet
[all …]
/linux/net/l2tp/
A Dl2tp_ip.c30 struct inet_sock inet; member
60 if (inet->inet_rcv_saddr && laddr && in __l2tp_ip_bind_lookup()
61 inet->inet_rcv_saddr != laddr) in __l2tp_ip_bind_lookup()
64 if (inet->inet_daddr && raddr && inet->inet_daddr != raddr) in __l2tp_ip_bind_lookup()
360 if (!inet->inet_dport) in l2tp_ip_getname()
368 addr = inet->inet_saddr; in l2tp_ip_getname()
431 daddr = inet->inet_daddr; in l2tp_ip_sendmsg()
458 fl4 = &inet->cork.fl.u.ip4; in l2tp_ip_sendmsg()
477 daddr, inet->inet_saddr, in l2tp_ip_sendmsg()
478 inet->inet_dport, inet->inet_sport, in l2tp_ip_sendmsg()
[all …]
/linux/net/ipv6/
A Daf_inet6.c114 struct inet_sock *inet; in inet6_create() local
194 inet = inet_sk(sk); in inet6_create()
200 inet->hdrincl = 1; in inet6_create()
221 inet->uc_ttl = -1; in inet6_create()
223 inet->mc_loop = 1; in inet6_create()
224 inet->mc_ttl = 1; in inet6_create()
225 inet->mc_index = 0; in inet6_create()
227 inet->rcv_tos = 0; in inet6_create()
244 if (inet->inet_num) { in inet6_create()
249 inet->inet_sport = htons(inet->inet_num); in inet6_create()
[all …]
A Dping.c49 struct inet_sock *inet = inet_sk(sk); in ping_v6_sendmsg() local
62 pr_debug("ping_v6_sendmsg(sk=%p,sk->num=%u)\n", inet, inet->inet_num); in ping_v6_sendmsg()
133 pfh.icmph.un.echo.id = inet->inet_sport; in ping_v6_sendmsg()
204 struct inet_sock *inet = inet_sk(v); in ping_v6_seq_show() local
205 __u16 srcp = ntohs(inet->inet_sport); in ping_v6_seq_show()
206 __u16 destp = ntohs(inet->inet_dport); in ping_v6_seq_show()
A Dinet6_hashtables.c251 struct inet_sock *inet = inet_sk(sk); in __inet6_check_established() local
257 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet6_check_established()
259 inet->inet_dport); in __inet6_check_established()
286 inet->inet_num = lport; in __inet6_check_established()
287 inet->inet_sport = htons(lport); in __inet6_check_established()
313 const struct inet_sock *inet = inet_sk(sk); in inet6_sk_port_offset() local
317 inet->inet_dport); in inet6_sk_port_offset()
/linux/net/dccp/
A Dipv4.c77 fl4 = &inet->cork.fl.u.ip4; in dccp_v4_connect()
93 if (inet->inet_saddr == 0) in dccp_v4_connect()
114 inet->inet_sport, inet->inet_dport, sk); in dccp_v4_connect()
124 inet->inet_daddr, in dccp_v4_connect()
125 inet->inet_sport, in dccp_v4_connect()
126 inet->inet_dport); in dccp_v4_connect()
142 inet->inet_dport = 0; in dccp_v4_connect()
243 struct inet_sock *inet; in dccp_v4_err() local
356 inet = inet_sk(sk); in dccp_v4_err()
381 inet->inet_saddr, in dccp_v4_send_check()
[all …]
A Dtrace.h37 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/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dtls.c41 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/net/rds/
A Dtcp_listen.c102 struct inet_sock *inet; in rds_tcp_accept_one() local
138 inet = inet_sk(new_sock->sk); in rds_tcp_accept_one()
144 ipv6_addr_set_v4mapped(inet->inet_saddr, &saddr); in rds_tcp_accept_one()
145 ipv6_addr_set_v4mapped(inet->inet_daddr, &daddr); in rds_tcp_accept_one()
151 my_addr, ntohs(inet->inet_sport), in rds_tcp_accept_one()
152 peer_addr, ntohs(inet->inet_dport)); in rds_tcp_accept_one()
/linux/include/linux/
A Dudp.h40 struct inet_sock inet; member
41 #define udp_port_hash inet.sk.__sk_common.skc_u16hashes[0]
42 #define udp_portaddr_hash inet.sk.__sk_common.skc_u16hashes[1]
43 #define udp_portaddr_node inet.sk.__sk_common.skc_portaddr_node
/linux/fs/ocfs2/cluster/
A Dnetdebug.c297 struct inet_sock *inet = NULL; in sc_show_sock_container() local
305 inet = inet_sk(sc->sc_sock->sk); in sc_show_sock_container()
307 saddr = (__force __be32)inet->inet_saddr; in sc_show_sock_container()
308 daddr = (__force __be32)inet->inet_daddr; in sc_show_sock_container()
309 sport = (__force __be16)inet->inet_sport; in sc_show_sock_container()
310 dport = (__force __be16)inet->inet_dport; in sc_show_sock_container()
332 &saddr, inet ? ntohs(sport) : 0, in sc_show_sock_container()
333 &daddr, inet ? ntohs(dport) : 0, in sc_show_sock_container()
/linux/security/
A Dlsm_audit.c331 struct inet_sock *inet = inet_sk(sk); in dump_common_audit_data() local
333 print_ipv4_addr(ab, inet->inet_rcv_saddr, in dump_common_audit_data()
334 inet->inet_sport, in dump_common_audit_data()
336 print_ipv4_addr(ab, inet->inet_daddr, in dump_common_audit_data()
337 inet->inet_dport, in dump_common_audit_data()
343 struct inet_sock *inet = inet_sk(sk); in dump_common_audit_data() local
346 inet->inet_sport, in dump_common_audit_data()
349 inet->inet_dport, in dump_common_audit_data()

Completed in 47 milliseconds

1234567891011