Home
last modified time | relevance | path

Searched full:inet (Results 1 – 25 of 544) sorted by relevance

12345678910>>...22

/linux/net/ipv4/
H A Ddatagram.c4 * 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 …]
H A Dinet_timewait_sock.c3 * 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 …]
H A Dip_sockglue.c3 * 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 …]
H A Dping.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
27 #include <linux/inet.h>
700 struct inet_sock *inet = inet_sk(sk); in ping_v4_sendmsg() local
711 pr_debug("ping_v4_sendmsg(sk=%p,sk->num=%u)\n", inet, inet->inet_num); in ping_v4_sendmsg()
733 daddr = inet->inet_daddr; in ping_v4_sendmsg()
737 ipcm_init_sk(&ipc, inet); in ping_v4_sendmsg()
752 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg()
771 tos = get_rttos(&ipc, inet); in ping_v4_sendmsg()
772 scope = ip_sendmsg_scope(inet, &ipc, msg); in ping_v4_sendmsg()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H 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 in dump_udp4()
[all...]
H 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()
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 in dump_udp6()
[all...]
H A Dsock_destroy_prog.c78 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()
H 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/tools/testing/selftests/net/netfilter/
H A Dnft_nat.sh69 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 …]
H A Dnft_nat_zones.sh118 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.…
H A Dconntrack_tcp_unreplied.sh39 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/include/trace/events/
H 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 …]
H A Dtcp.h42 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 …]
H A Dsock.h162 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/net/l2tp/
H A Dl2tp_ip.c40 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/net/ipv6/
H A Daf_inet6.c38 #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 …]
H A Dinet6_hashtables.c3 * 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()
H A Dping.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
64 struct inet_sock *inet = inet_sk(sk); in ping_v6_sendmsg() local
167 pfh.icmph.un.echo.id = inet->inet_sport; in ping_v6_sendmsg()
242 struct inet_sock *inet = inet_sk((struct sock *)v); in ping_v6_seq_show() local
243 __u16 srcp = ntohs(inet->inet_sport); in ping_v6_seq_show()
244 __u16 destp = ntohs(inet->inet_dport); in ping_v6_seq_show()
/linux/include/net/
H A Dinet_sock.h3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
191 /** struct inet_sock - representation of INET sockets
283 /* cmsg flags for inet */
300 static inline unsigned long inet_cmsg_flags(const struct inet_sock *inet) in inet_cmsg_flags() argument
302 return READ_ONCE(inet->inet_flags) & IP_CMSG_ALL; in inet_cmsg_flags()
429 struct inet_sock *inet) in inet_can_nonlocal_bind() argument
432 test_bit(INET_FLAGS_FREEBIND, &inet->inet_flags) || in inet_can_nonlocal_bind()
433 test_bit(INET_FLAGS_TRANSPARENT, &inet->inet_flags); in inet_can_nonlocal_bind()
437 struct inet_sock *inet, in inet_addr_valid_or_nonlocal() argument
[all …]
H A Draw.h3 * 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/net/dccp/
H A Dipv4.c49 struct inet_sock *inet = inet_sk(sk); in dccp_v4_connect() local
68 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect()
76 orig_sport = inet->inet_sport; in dccp_v4_connect()
78 fl4 = &inet->cork.fl.u.ip4; in dccp_v4_connect()
79 rt = ip_route_connect(fl4, nexthop, inet->inet_saddr, in dccp_v4_connect()
93 if (inet->inet_saddr == 0) { in dccp_v4_connect()
100 sk_rcv_saddr_set(sk, inet->inet_saddr); in dccp_v4_connect()
103 inet->inet_dport = usin->sin_port; in dccp_v4_connect()
121 inet->inet_sport, inet in dccp_v4_connect()
163 const struct inet_sock *inet = inet_sk(sk); dccp_do_pmtu_discovery() local
384 const struct inet_sock *inet = inet_sk(sk); dccp_v4_send_check() local
[all...]
H 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/Documentation/devicetree/bindings/leds/
H A Dleds-bcm6328.yaml137 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 */
/linux/fs/ocfs2/cluster/
H 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()
313 /* XXX sigh, inet-> doesn't have sparse annotation so any 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/net/
H A DKconfig108 config INET config
130 if INET
136 endif # if INET
228 depends on NETFILTER && INET
359 depends on INET
384 depends on INET && PROC_FS
399 depends on INET && TRACEPOINTS
453 depends on LWTUNNEL && INET
475 depends on PHYLIB && INET

12345678910>>...22