MCPcopy Create free account
hub / github.com/F-Stack/f-stack / is_covered

Function is_covered

dpdk/lib/rib/rte_rib.c:66–70  ·  view source on GitHub ↗

* Check if ip1 is covered by ip2/depth prefix */

Source from the content-addressed store, hash-verified

64 * Check if ip1 is covered by ip2/depth prefix
65 */
66static inline bool
67is_covered(uint32_t ip1, uint32_t ip2, uint8_t depth)
68{
69 return ((ip1 ^ ip2) & rte_rib_depth_to_mask(depth)) == 0;
70}
71
72static inline struct rte_rib_node *
73get_nxt_node(struct rte_rib_node *node, uint32_t ip)

Callers 4

rte_rib_lookupFunction · 0.70
__rib_lookup_exactFunction · 0.70
rte_rib_get_nxtFunction · 0.70
rte_rib_insertFunction · 0.70

Calls 1

rte_rib_depth_to_maskFunction · 0.85

Tested by

no test coverage detected