| 1516 | } |
| 1517 | |
| 1518 | static bool |
| 1519 | is_algo_fixed(struct rib_head *rh) |
| 1520 | { |
| 1521 | |
| 1522 | switch (rh->rib_family) { |
| 1523 | #ifdef INET |
| 1524 | case AF_INET: |
| 1525 | return (V_algo_fixed_inet); |
| 1526 | #endif |
| 1527 | #ifdef INET6 |
| 1528 | case AF_INET6: |
| 1529 | return (V_algo_fixed_inet6); |
| 1530 | #endif |
| 1531 | } |
| 1532 | return (false); |
| 1533 | } |
| 1534 | |
| 1535 | /* |
| 1536 | * Runs the check on what would be the best algo for rib @rh, assuming |