Home
last modified time | relevance | path

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

/net/ipv6/
Dinet6_hashtables.c98 int score = -1; in compute_score() local
108 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score()
110 score++; in compute_score()
112 return score; in compute_score()
160 int score, hiscore = 0; in inet6_lhash2_lookup() local
163 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup()
164 if (score > hiscore) { in inet6_lhash2_lookup()
171 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.c1548 struct ipv6_saddr_score *score, in ipv6_get_saddr_eval() argument
1554 if (i <= score->rule) { in ipv6_get_saddr_eval()
1557 ret = score->scopedist; in ipv6_get_saddr_eval()
1560 ret = score->matchlen; in ipv6_get_saddr_eval()
1563 ret = !!test_bit(i, score->scorebits); in ipv6_get_saddr_eval()
1571 ret = !!score->ifa; in ipv6_get_saddr_eval()
1575 ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); in ipv6_get_saddr_eval()
1599 ret = __ipv6_addr_src_scope(score->addr_type); in ipv6_get_saddr_eval()
1604 score->scopedist = ret; in ipv6_get_saddr_eval()
1611 if (!ipv6_use_optimistic_addr(net, score->ifa->idev)) in ipv6_get_saddr_eval()
[all …]
Dudp.c126 int bound_dev_if, score; in compute_score() local
138 score = 0; in compute_score()
144 score++; in compute_score()
150 score++; in compute_score()
158 score++; in compute_score()
161 score++; in compute_score()
163 return score; in compute_score()
174 int score, badness; in udp6_lib_lookup2() local
182 score = compute_score(need_rescore ? result : sk, net, saddr, in udp6_lib_lookup2()
184 if (score > badness) { in udp6_lib_lookup2()
[all …]
/net/ipv4/
Dinet_hashtables.c323 int score = -1; in compute_score() local
332 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score()
335 score++; in compute_score()
337 score++; in compute_score()
339 return score; in compute_score()
392 int score, hiscore = 0; in inet_lhash2_lookup() local
395 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet_lhash2_lookup()
396 if (score > hiscore) { in inet_lhash2_lookup()
403 hiscore = score; in inet_lhash2_lookup()
Dudp.c374 int score; in compute_score() local
386 score = (sk->sk_family == PF_INET) ? 2 : 1; in compute_score()
392 score += 4; in compute_score()
398 score += 4; in compute_score()
406 score += 4; in compute_score()
409 score++; in compute_score()
410 return score; in compute_score()
434 int score, badness; in udp4_lib_lookup2() local
442 score = compute_score(need_rescore ? result : sk, net, saddr, in udp4_lib_lookup2()
444 if (score > badness) { in udp4_lib_lookup2()
[all …]
/net/ipv6/ila/
Dila_xlat.c76 int score = 0; in ila_order() local
79 score += 1 << 1; in ila_order()
81 return score; in ila_order()