Lines Matching +full:ports +full:- +full:implemented
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * operating system. INET is implemented using the BSD Socket
33 const u32 ports = (((u32)lport) << 16) | (__force u32)fport; in __inet6_ehashfn() local
34 return jhash_3words(lhash, fhash, ports, initval); in __inet6_ehashfn()
39 * we need not check it for TCP lookups anymore, thanks Alexey. -DaveM
122 if (sk->sk_protocol == IPPROTO_TCP) { in inet6_steal_sock()
123 if (sk->sk_state != TCP_LISTEN) in inet6_steal_sock()
125 } else if (sk->sk_protocol == IPPROTO_UDP) { in inet6_steal_sock()
126 if (sk->sk_state != TCP_CLOSE) in inet6_steal_sock()
157 sk = inet6_steal_sock(net, skb, doff, &ip6h->saddr, sport, &ip6h->daddr, dport, in __inet6_lookup_skb()
165 doff, &ip6h->saddr, sport, in __inet6_lookup_skb()
166 &ip6h->daddr, ntohs(dport), in __inet6_lookup_skb()
181 const __portpair ports, in inet6_match() argument
185 sk->sk_family != AF_INET6 || in inet6_match()
186 sk->sk_portpair != ports || in inet6_match()
187 !ipv6_addr_equal(&sk->sk_v6_daddr, saddr) || in inet6_match()
188 !ipv6_addr_equal(&sk->sk_v6_rcv_saddr, daddr)) in inet6_match()
192 return inet_sk_bound_dev_eq(net, READ_ONCE(sk->sk_bound_dev_if), dif, in inet6_match()