Home
last modified time | relevance | path

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

12345678910>>...21

/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 Daf_inet.c3 * 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>
137 struct inet_sock *inet = inet_sk(sk); in inet_sock_destruct()
150 pr_err("Attempt to release alive inet socket %p\n", sk); in inet_sock_destruct()
159 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct()
178 struct inet_sock *inet; in inet_autobind()
181 inet = inet_sk(sk); in inet_autobind()
182 if (!inet->inet_num) { in inet_autobind()
187 inet in inet_autobind()
136 struct inet_sock *inet = inet_sk(sk); inet_sock_destruct() local
176 struct inet_sock *inet; inet_autobind() local
257 struct inet_sock *inet; inet_create() local
475 struct inet_sock *inet = inet_sk(sk); __inet_bind() local
799 struct inet_sock *inet = inet_sk(sk); inet_getname() local
1255 struct inet_sock *inet = inet_sk(sk); inet_sk_reselect_saddr() local
1311 struct inet_sock *inet = inet_sk(sk); inet_sk_rebuild_header() local
[all...]
H A Draw.c3 * 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 in raw_err()
331 struct inet_sock *inet = inet_sk(sk); raw_send_hdrinc() local
484 struct inet_sock *inet = inet_sk(sk); raw_sendmsg() local
702 struct inet_sock *inet = inet_sk(sk); raw_bind() local
742 struct inet_sock *inet = inet_sk(sk); raw_recvmsg() local
1034 struct inet_sock *inet = inet_sk(sp); raw_sock_seq_show() local
[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
114 const struct inet_sock *inet = inet_sk(sk); in inet_twsk_hashdance_schedule()
121 Note, that any socket with inet->num != 0 MUST be bound in in inet_twsk_hashdance_schedule()
124 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance_schedule()
126 bhead2 = inet_bhashfn_portaddr(hashinfo, sk, twsk_net(tw), inet->inet_num); in inet_twsk_hashdance_schedule()
192 const struct inet_sock *inet = inet_sk(sk); in inet_twsk_alloc()
196 tw->tw_daddr = inet->inet_daddr; in inet_twsk_alloc()
197 tw->tw_rcv_saddr = inet->inet_rcv_saddr; in inet_twsk_alloc()
199 tw->tw_tos = inet in inet_twsk_alloc()
112 const struct inet_sock *inet = inet_sk(sk); inet_twsk_hashdance_schedule() local
190 const struct inet_sock *inet = inet_sk(sk); inet_twsk_alloc() local
[all...]
/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 filte
[all...]
H A Dnft_nat_zones.sh117 table inet raw {
166 ( echo add element inet raw iiftomark \{
171 echo add element inet raw iiftozone \{
195 if ! ip netns exec "$gw" nft get element inet raw inicmp "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 }" | grep -q "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 counter packets 3 bytes 252 }"; then
198 ip netns exec "$gw" nft get element inet raw inicmp "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 }" 1>&2
203 if ! ip netns exec "$gw" nft get element inet raw inicmp "{ 10.3.0.99 . \"veth0\" . 10.3.0.1 }" | grep -q "{ 10.3.0.99 . \"veth0\" . 10.3.0.1 counter packets $((3 * maxclients)) bytes $((252 * maxclients)) }"; then
206 ip netns exec "$gw" nft get element inet raw inicmp "{ 10.3.99 . \"veth0\" . 10.3.0.1 }" 1>&2
250 if ! ip netns exec "$gw" nft get element inet raw inflows "{ 10.1.0.3 . 10000 . \"veth$i\" . 10.3.0.99 . 5201 }" > /dev/null;then
260 if ! ip netns exec "$gw" nft get element inet raw inflows "{ 10.3.0.99 . 5201 . \"veth0\" . 10.3.0.1 . 10000 }" > /dev/null;then
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 Dtcp.h37 const struct inet_sock *inet = inet_sk(sk);
44 __entry->sport = ntohs(inet->inet_sport);
45 __entry->dport = ntohs(inet->inet_dport);
49 *p32 = inet->inet_saddr;
52 *p32 = inet->inet_daddr;
54 TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr,
109 const struct inet_sock *inet = inet_sk(sk);
111 TP_STORE_ADDR_PORTS(__entry, inet, sk);
157 struct inet_sock *inet = inet_sk(sk);
162 __entry->sport = ntohs(inet->inet_sport);
[all …]
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 Dsock.h161 const struct inet_sock *inet = inet_sk(sk);
170 __entry->sport = ntohs(inet->inet_sport);
171 __entry->dport = ntohs(inet->inet_dport);
174 *p32 = inet->inet_saddr;
177 *p32 = inet->inet_daddr;
179 TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr,
212 const struct inet_sock *inet = inet_sk(sk);
218 __entry->sport = ntohs(inet->inet_sport);
219 __entry->dport = ntohs(inet
[all...]
/linux/tools/testing/selftests/bpf/progs/
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/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 in inet6_create()
284 struct inet_sock *inet = inet_sk(sk); __inet6_bind() local
527 struct inet_sock *inet = inet_sk(sk); inet6_getname() local
832 struct inet_sock *inet = inet_sk(sk); inet6_sk_rebuild_header() local
[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
271 struct inet_sock *inet = inet_sk(sk); in __inet6_check_established() local
277 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet6_check_established()
318 inet->inet_num = lport; in __inet6_check_established()
319 inet->inet_sport = htons(lport); in __inet6_check_established()
345 const struct inet_sock *inet = inet_sk(sk); in inet6_sk_port_offset()
349 inet->inet_dport); in inet6_sk_port_offset()
357 const struct inet_sock *inet = inet_sk(sk); in inet6_hash_connect()
365 hash_port0 = inet6_ehashfn(net, daddr, 0, saddr, inet in inet6_hash_connect()
346 const struct inet_sock *inet = inet_sk(sk); inet6_sk_port_offset() local
358 const struct inet_sock *inet = inet_sk(sk); inet6_hash_connect() local
[all...]
H A Dinet6_connection_sock.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
67 struct inet_sock *inet = inet_sk(sk); in inet6_csk_route_socket() local
80 fl6->fl6_sport = inet->inet_sport; in inet6_csk_route_socket()
81 fl6->fl6_dport = inet->inet_dport; in inet6_csk_route_socket()
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
165 pfh.icmph.un.echo.id = inet->inet_sport; in ping_v6_sendmsg()
239 struct inet_sock *inet = inet_sk((struct sock *)v); in ping_v6_seq_show()
240 __u16 srcp = ntohs(inet->inet_sport); in ping_v6_seq_show() local
241 __u16 destp = ntohs(inet->inet_dport); in ping_v6_seq_show()
/linux/drivers/net/
H A DKconfig43 depends on INET
77 depends on NET && INET
107 depends on NET && INET
185 depends on INET
204 depends on INET
223 depends on INET
236 depends on INET
251 depends on INET
267 depends on INET
280 depends on INET
[all …]
/linux/include/linux/
H A Dudp.h3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
55 struct inet_sock inet;
56 #define udp_port_hash inet.sk.__sk_common.skc_u16hashes[0]
57 #define udp_portaddr_hash inet.sk.__sk_common.skc_u16hashes[1]
58 #define udp_portaddr_node inet.sk.__sk_common.skc_portaddr_node
135 #define udp_sk(ptr) container_of_const(ptr, struct udp_sock, inet.sk) in udp_set_no_check6_rx()
49 struct inet_sock inet; global() member
/linux/net/dccp/
H A Dipv4.c
H A Dtrace.h
/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/include/net/
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
87 #define raw_sk(ptr) container_of_const(ptr, struct raw_sock, inet.sk)
H A Droute.h3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
134 static inline void inet_sk_init_flowi4(const struct inet_sock *inet, in inet_sk_init_flowi4() argument
142 ip4_opt = rcu_dereference(inet->inet_opt); in inet_sk_init_flowi4()
148 daddr = inet->inet_daddr; in inet_sk_init_flowi4()
151 sk = &inet->sk; in inet_sk_init_flowi4()
155 inet->inet_saddr, inet->inet_dport, in inet_sk_init_flowi4()
156 inet->inet_sport, sk_uid(sk)); in inet_sk_init_flowi4()
/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 DKconfig114 config INET
136 if INET
142 endif # if INET
234 depends on NETFILTER && INET
364 depends on INET
389 depends on INET && PROC_FS
404 depends on INET && TRACEPOINTS
458 depends on LWTUNNEL && INET
480 depends on PHYLIB && INET
112 config INET global() config

12345678910>>...21