Home
last modified time | relevance | path

Searched refs:score (Results 1 – 7 of 7) sorted by relevance

/net/ipv6/
Dinet6_hashtables.c99 int score = -1; in compute_score() local
109 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score()
111 score++; in compute_score()
113 return score; in compute_score()
143 int score, hiscore = 0; in inet6_lhash2_lookup() local
147 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup()
148 if (score > hiscore) { in inet6_lhash2_lookup()
155 hiscore = score; in inet6_lhash2_lookup()
Dip6_gre.c129 int score, cand_score = 4; in ip6gre_tunnel_lookup() local
143 score = 0; in ip6gre_tunnel_lookup()
145 score |= 1; in ip6gre_tunnel_lookup()
147 score |= 2; in ip6gre_tunnel_lookup()
148 if (score == 0) in ip6gre_tunnel_lookup()
151 if (score < cand_score) { in ip6gre_tunnel_lookup()
153 cand_score = score; in ip6gre_tunnel_lookup()
167 score = 0; in ip6gre_tunnel_lookup()
169 score |= 1; in ip6gre_tunnel_lookup()
171 score |= 2; in ip6gre_tunnel_lookup()
[all …]
Daddrconf.c1540 struct ipv6_saddr_score *score, in ipv6_get_saddr_eval() argument
1546 if (i <= score->rule) { in ipv6_get_saddr_eval()
1549 ret = score->scopedist; in ipv6_get_saddr_eval()
1552 ret = score->matchlen; in ipv6_get_saddr_eval()
1555 ret = !!test_bit(i, score->scorebits); in ipv6_get_saddr_eval()
1563 ret = !!score->ifa; in ipv6_get_saddr_eval()
1567 ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); in ipv6_get_saddr_eval()
1591 ret = __ipv6_addr_src_scope(score->addr_type); in ipv6_get_saddr_eval()
1596 score->scopedist = ret; in ipv6_get_saddr_eval()
1603 if (!ipv6_use_optimistic_addr(net, score->ifa->idev)) in ipv6_get_saddr_eval()
[all …]
Dudp.c120 int score; in compute_score() local
132 score = 0; in compute_score()
138 score++; in compute_score()
144 score++; in compute_score()
151 score++; in compute_score()
154 score++; in compute_score()
156 return score; in compute_score()
185 int score, badness; in udp6_lib_lookup2() local
190 score = compute_score(sk, net, saddr, sport, in udp6_lib_lookup2()
192 if (score > badness) { in udp6_lib_lookup2()
[all …]
/net/ipv4/
Dinet_hashtables.c236 int score = -1; in compute_score() local
245 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score()
248 score++; in compute_score()
250 score++; in compute_score()
252 return score; in compute_score()
287 int score, hiscore = 0; in inet_lhash2_lookup() local
291 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet_lhash2_lookup()
292 if (score > hiscore) { in inet_lhash2_lookup()
299 hiscore = score; in inet_lhash2_lookup()
Dudp.c363 int score; in compute_score() local
375 score = (sk->sk_family == PF_INET) ? 2 : 1; in compute_score()
381 score += 4; in compute_score()
387 score += 4; in compute_score()
395 score += 4; in compute_score()
398 score++; in compute_score()
399 return score; in compute_score()
439 int score, badness; in udp4_lib_lookup2() local
444 score = compute_score(sk, net, saddr, sport, in udp4_lib_lookup2()
446 if (score > badness) { in udp4_lib_lookup2()
[all …]
/net/ipv6/ila/
Dila_xlat.c77 int score = 0; in ila_order() local
80 score += 1 << 1; in ila_order()
82 return score; in ila_order()