Lines Matching refs:depth
12 uint8_t depth; member
1045 const uint8_t *ip_in, uint8_t depth) in mask_ip6_prefix() argument
1051 if (depth >= 8) in mask_ip6_prefix()
1053 else if (depth > 0) { in mask_ip6_prefix()
1054 mask_in = (uint8_t)((unsigned int)(-1) << (8 - depth)); in mask_ip6_prefix()
1061 depth -= 8; in mask_ip6_prefix()
1069 const uint8_t *ip_rule, uint8_t depth) in check_lpm6_rule() argument
1075 if (depth >= 8) { in check_lpm6_rule()
1078 } else if (depth > 0) { in check_lpm6_rule()
1079 mask = (uint8_t)((unsigned int)(-1) << (8 - depth)); in check_lpm6_rule()
1087 depth -= 8; in check_lpm6_rule()
1107 if (rule[i].depth >= max_depth) { in get_next_hop()
1108 result = check_lpm6_rule(ip, rule[i].ip, rule[i].depth); in get_next_hop()
1111 max_depth = rule[i].depth; in get_next_hop()
1137 large_route_table[j].ip, large_route_table[j].depth); in generate_large_ips_table()