Lines Matching defs:points
351 * compute_points_v6(): compute the number of "points" for a given v6
363 int points = 0;
373 * dhcp_packet_lif. Bonus points for each option.
377 points++;
396 /* Two points for each batch of offered IP addresses */
419 points += 2;
432 points++;
436 * Ten points for each point of "preference." Note: the value 255 is
445 points += 10 * pref;
448 return (points);
452 * compute_points_v4(): compute the number of "points" for a given v4 offer.
462 int points = 0;
495 points += 30;
499 points += 5;
509 points += 80;
512 points++;
515 points++;
518 points += 5;
520 return (points);
536 int points, best_points = -1;
542 * 0) DHCP (30 points)
544 * 2) encapsulated vendor option (80 points)
547 * 5) hostname (5 points)
555 points = current->isv6 ?
562 if (points == -1) {
568 dhcpmsg(MSG_DEBUG, "select_best: OFFER had %d points", points);
571 if (points == -2) {
576 if (points >= best_points) {
577 best_points = points;
583 dhcpmsg(MSG_DEBUG, "select_best: most points: %d", best_points);