Lines Matching defs:net
22 #include <net/inet_connection_sock.h>
23 #include <net/inet_hashtables.h>
24 #include <net/ip.h>
34 struct net *net,
41 write_pnet(&tb->ib_net, hold_net(net));
123 static inline int compute_score(struct sock *sk, struct net *net,
130 if (net_eq(sock_net(sk), net) && inet->inet_num == hnum &&
156 struct sock *__inet_lookup_listener(struct net *net,
163 unsigned int hash = inet_lhashfn(net, hnum);
172 score = compute_score(sk, net, hnum, daddr, dif);
188 else if (unlikely(compute_score(result, net, hnum, daddr,
199 struct sock * BCMFASTPATH_HOST __inet_lookup_established(struct net *net,
212 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport);
219 if (INET_MATCH(sk, net, hash, acookie,
223 if (unlikely(!INET_MATCH(sk, net, hash, acookie,
242 if (INET_TW_MATCH(sk, net, hash, acookie,
248 if (unlikely(!INET_TW_MATCH(sk, net, hash, acookie,
282 struct net *net = sock_net(sk);
283 unsigned int hash = inet_ehashfn(net, daddr, lport,
298 if (INET_TW_MATCH(sk2, net, hash, acookie,
310 if (INET_MATCH(sk2, net, hash, acookie,
325 NET_INC_STATS_BH(net, LINUX_MIB_TIMEWAITRECYCLED);
444 struct net *net = sock_net(sk);
462 head = &hinfo->bhash[inet_bhashfn(net, port,
471 if (net_eq(ib_net(tb), net) &&
484 net, head, port);
524 head = &hinfo->bhash[inet_bhashfn(net, snum, hinfo->bhash_size)];