/linux-6.14.4/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_udp4.c | 29 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() 55 rqueue = inet->sk.sk_rmem_alloc.counter - udp_sk->forward_deficit; in dump_udp4() 61 inet->sk.sk_state, in dump_udp4() [all …]
|
D | bpf_iter_udp6.c | 38 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() 57 rqueue = inet->sk.sk_rmem_alloc.counter - udp_sk->forward_deficit; 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() [all …]
|
D | sock_destroy_prog.c | 78 const struct inet_sock *inet; in iter_tcp6_server() local 93 inet = &icsk->icsk_inet; in iter_tcp6_server() 94 srcp = inet->inet_sport; in iter_tcp6_server() 131 struct inet_sock *inet; in iter_udp6_server() local 137 inet = &udp_sk->inet; in iter_udp6_server() 138 srcp = inet->inet_sport; in iter_udp6_server()
|
D | bpf_iter_tcp4.c | 79 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-6.14.4/net/ipv4/ |
D | datagram.c | 4 * Linux INET implementation 21 struct inet_sock *inet = inet_sk(sk); in __ip4_datagram_connect() local 39 saddr = inet->inet_saddr; in __ip4_datagram_connect() 42 oif = READ_ONCE(inet->mc_index); in __ip4_datagram_connect() 44 saddr = READ_ONCE(inet->mc_addr); in __ip4_datagram_connect() 46 oif = READ_ONCE(inet->uc_index); in __ip4_datagram_connect() 48 fl4 = &inet->cork.fl.u.ip4; in __ip4_datagram_connect() 50 sk->sk_protocol, inet->inet_sport, in __ip4_datagram_connect() 66 inet->inet_daddr = fl4->daddr; in __ip4_datagram_connect() 67 inet->inet_dport = usin->sin_port; in __ip4_datagram_connect() [all …]
|
D | af_inet.c | 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 91 #include <linux/inet.h> 136 struct inet_sock *inet = inet_sk(sk); in inet_sock_destruct() local 149 pr_err("Attempt to release alive inet socket %p\n", sk); in inet_sock_destruct() 158 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 176 struct inet_sock *inet; in inet_autobind() local 179 inet = inet_sk(sk); in inet_autobind() 180 if (!inet->inet_num) { in inet_autobind() 185 inet->inet_sport = htons(inet->inet_num); in inet_autobind() [all …]
|
D | raw.c | 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 122 const struct inet_sock *inet = inet_sk(sk); in raw_v4_match() local 124 if (net_eq(sock_net(sk), net) && inet->inet_num == num && in raw_v4_match() 125 !(inet->inet_daddr && inet->inet_daddr != raddr) && in raw_v4_match() 126 !(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) && in raw_v4_match() 210 struct inet_sock *inet = inet_sk(sk); in raw_err() local 249 harderr = READ_ONCE(inet->pmtudisc) != IP_PMTUDISC_DONT; in raw_err() 331 struct inet_sock *inet = inet_sk(sk); in raw_send_hdrinc() local 341 ip_local_error(sk, EMSGSIZE, fl4->daddr, inet->inet_dport, in raw_send_hdrinc() [all …]
|
D | inet_timewait_sock.c | 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 112 const struct inet_sock *inet = inet_sk(sk); in inet_twsk_hashdance_schedule() local 119 Note, that any socket with inet->num != 0 MUST be bound in in inet_twsk_hashdance_schedule() 122 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance_schedule() 124 bhead2 = inet_bhashfn_portaddr(hashinfo, sk, twsk_net(tw), inet->inet_num); in inet_twsk_hashdance_schedule() 191 const struct inet_sock *inet = inet_sk(sk); in inet_twsk_alloc() local 195 tw->tw_daddr = inet->inet_daddr; in inet_twsk_alloc() 196 tw->tw_rcv_saddr = inet->inet_rcv_saddr; in inet_twsk_alloc() 198 tw->tw_tos = inet->tos; in inet_twsk_alloc() [all …]
|
D | ip_sockglue.c | 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 895 struct inet_sock *inet = inet_sk(sk); in do_ip_setsockopt() local 1031 WRITE_ONCE(inet->uc_ttl, val); in do_ip_setsockopt() 1042 WRITE_ONCE(inet->min_ttl, val); in do_ip_setsockopt() 1053 WRITE_ONCE(inet->mc_ttl, val); in do_ip_setsockopt() 1070 WRITE_ONCE(inet->local_port_range, val); in do_ip_setsockopt() 1090 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt() 1098 inet->inet_daddr != LOOPBACK4_IPV6)) { in do_ip_setsockopt() 1109 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt() [all …]
|
/linux-6.14.4/tools/testing/selftests/net/netfilter/ |
D | nft_nat.sh | 69 ip netns exec "$ns" nft list counter inet filter "$counter" 1>&2 77 if ! ip netns exec "$ns" nft list counter inet filter ns0in | grep -q "packets 1 bytes 84";then 82 if ! ip netns exec "$ns" nft list counter inet filter ns0out | grep -q "packets 1 bytes 84";then 88 if ! ip netns exec "$ns" nft list counter inet filter ns0in6 | grep -q "$expect";then 92 if ! ip netns exec "$ns" nft list counter inet filter ns0out6 | grep -q "$expect";then 105 if ! ip netns exec "$ns0" nft list counter inet filter ns0in | grep -q "packets 0 bytes 0";then 110 if ! ip netns exec "$ns0" nft list counter inet filter ns0in6 | grep -q "packets 0 bytes 0";then 115 if ! ip netns exec "$ns0" nft list counter inet filter ns0out | grep -q "packets 0 bytes 0";then 119 if ! ip netns exec "$ns0" nft list counter inet filter ns0out6 | grep -q "packets 0 bytes 0";then 126 if ! ip netns exec "$ns0" nft list counter inet filter "${ns}${dir}" | grep -q "$expect";then [all …]
|
D | nft_nat_zones.sh | 118 table inet raw { 167 ( echo add element inet raw iiftomark \{ 172 echo add element inet raw iiftozone \{ 197 …if ! ip netns exec "$gw" nft get element inet raw inicmp "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 }" |… 200 … ip netns exec "$gw" nft get element inet raw inicmp "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 }" 1>&2 205 if ! ip netns exec "$gw" nft get element inet raw inicmp "{ 10.3.0.99 . \"veth0\" . 10.3.0.1 }" | g… 208 ip netns exec "$gw" nft get element inet raw inicmp "{ 10.3.99 . \"veth0\" . 10.3.0.1 }" 1>&2 252 …if ! ip netns exec "$gw" nft get element inet raw inflows "{ 10.1.0.3 . 10000 . \"veth$i\" . 10.3.… 262 if ! ip netns exec "$gw" nft get element inet raw inflows "{ 10.3.0.99 . 5201 . \"veth0\" . 10.3.0.…
|
D | conntrack_tcp_unreplied.sh | 39 if ! ip netns exec "$ns2" nft list counter inet filter "$name" | grep -q "$expect"; then 41 ip netns exec "$ns2" nft list counter inet filter "$name" 1>&2 69 table inet filter { 86 table inet filter { 127 table inet nat {
|
/linux-6.14.4/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 | 42 const struct inet_sock *inet = inet_sk(sk); 49 __entry->sport = ntohs(inet->inet_sport); 50 __entry->dport = ntohs(inet->inet_dport); 54 *p32 = inet->inet_saddr; 57 *p32 = inet->inet_daddr; 59 TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr, 118 const struct inet_sock *inet = inet_sk(sk); 120 TP_STORE_ADDR_PORTS(__entry, inet, sk); 166 struct inet_sock *inet = inet_sk(sk); 171 __entry->sport = ntohs(inet->inet_sport); [all …]
|
D | sock.h | 162 const struct inet_sock *inet = inet_sk(sk); 171 __entry->sport = ntohs(inet->inet_sport); 172 __entry->dport = ntohs(inet->inet_dport); 175 *p32 = inet->inet_saddr; 178 *p32 = inet->inet_daddr; 180 TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr, 213 const struct inet_sock *inet = inet_sk(sk); 219 __entry->sport = ntohs(inet->inet_sport); 220 __entry->dport = ntohs(inet->inet_dport); 223 *p32 = inet->inet_saddr; [all …]
|
/linux-6.14.4/net/l2tp/ |
D | l2tp_ip.c | 40 struct inet_sock inet; member 64 const struct inet_sock *inet = inet_sk(sk); in __l2tp_ip_bind_lookup() local 74 if (inet->inet_rcv_saddr && laddr && in __l2tp_ip_bind_lookup() 75 inet->inet_rcv_saddr != laddr) in __l2tp_ip_bind_lookup() 78 if (inet->inet_daddr && raddr && inet->inet_daddr != raddr) in __l2tp_ip_bind_lookup() 272 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_bind() local 300 inet->inet_rcv_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind() 301 inet->inet_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind() 304 inet->inet_saddr = 0; /* Use device */ in l2tp_ip_bind() 380 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_getname() local [all …]
|
/linux-6.14.4/include/net/ |
D | inet_sock.h | 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 192 /** struct inet_sock - representation of INET sockets 284 /* cmsg flags for inet */ 301 static inline unsigned long inet_cmsg_flags(const struct inet_sock *inet) in inet_cmsg_flags() argument 303 return READ_ONCE(inet->inet_flags) & IP_CMSG_ALL; in inet_cmsg_flags() 306 static inline dscp_t inet_sk_dscp(const struct inet_sock *inet) in inet_sk_dscp() argument 308 return inet_dsfield_to_dscp(READ_ONCE(inet->tos)); in inet_sk_dscp() 435 struct inet_sock *inet) in inet_can_nonlocal_bind() argument 438 test_bit(INET_FLAGS_FREEBIND, &inet->inet_flags) || in inet_can_nonlocal_bind() [all …]
|
D | raw.h | 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 81 struct inet_sock inet; member 86 #define raw_sk(ptr) container_of_const(ptr, struct raw_sock, inet.sk)
|
/linux-6.14.4/net/ipv6/ |
D | af_inet6.c | 38 #include <linux/inet.h> 123 struct inet_sock *inet; in inet6_create() local 206 inet = inet_sk(sk); in inet6_create() 210 inet->inet_num = protocol; in inet6_create() 235 inet->uc_ttl = -1; in inet6_create() 238 inet->mc_ttl = 1; in inet6_create() 239 inet->mc_index = 0; in inet6_create() 240 RCU_INIT_POINTER(inet->mc_list, NULL); in inet6_create() 241 inet->rcv_tos = 0; in inet6_create() 244 inet->pmtudisc = IP_PMTUDISC_DONT; in inet6_create() [all …]
|
D | inet6_hashtables.c | 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 269 struct inet_sock *inet = inet_sk(sk); in __inet6_check_established() local 275 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet6_check_established() 277 inet->inet_dport); in __inet6_check_established() 305 inet->inet_num = lport; in __inet6_check_established() 306 inet->inet_sport = htons(lport); in __inet6_check_established() 332 const struct inet_sock *inet = inet_sk(sk); in inet6_sk_port_offset() local 336 inet->inet_dport); in inet6_sk_port_offset()
|
/linux-6.14.4/include/linux/ |
D | udp.h | 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 49 struct inet_sock inet; member 50 #define udp_port_hash inet.sk.__sk_common.skc_u16hashes[0] 51 #define udp_portaddr_hash inet.sk.__sk_common.skc_u16hashes[1] 52 #define udp_portaddr_node inet.sk.__sk_common.skc_portaddr_node 119 #define udp_sk(ptr) container_of_const(ptr, struct udp_sock, inet.sk)
|
/linux-6.14.4/drivers/net/ |
D | Kconfig | 43 depends on INET 77 depends on NET && INET 183 depends on INET 202 depends on INET 221 depends on INET 234 depends on INET 249 depends on INET 265 depends on INET 278 depends on INET 295 depends on INET [all …]
|
/linux-6.14.4/net/dccp/ |
D | ipv4.c | 50 struct inet_sock *inet = inet_sk(sk); in dccp_v4_connect() local 69 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect() 77 orig_sport = inet->inet_sport; in dccp_v4_connect() 79 fl4 = &inet->cork.fl.u.ip4; in dccp_v4_connect() 80 rt = ip_route_connect(fl4, nexthop, inet->inet_saddr, in dccp_v4_connect() 94 if (inet->inet_saddr == 0) { in dccp_v4_connect() 101 sk_rcv_saddr_set(sk, inet->inet_saddr); in dccp_v4_connect() 104 inet->inet_dport = usin->sin_port; in dccp_v4_connect() 122 inet->inet_sport, inet->inet_dport, sk); in dccp_v4_connect() 131 dp->dccps_iss = secure_dccp_sequence_number(inet->inet_saddr, 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-6.14.4/Documentation/devicetree/bindings/leds/ |
D | leds-bcm6328.yaml | 137 label = "green:inet"; 193 label = "red:inet"; 217 label = "green:inet"; 278 inet@1 { 282 /* INET activity routed to INET LED */ 333 /* USB/INET link/activity routed to USB LED */ 363 /* USB link/act and INET act routed to USB LED */
|