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

Function rn_search_m

freebsd/net/radix.c:163–177  ·  view source on GitHub ↗

* Same as above, but with an additional mask. * XXX note this function is used only once. */

Source from the content-addressed store, hash-verified

161 * XXX note this function is used only once.
162 */
163static struct radix_node *
164rn_search_m(void *v_arg, struct radix_node *head, void *m_arg)
165{
166 struct radix_node *x;
167 caddr_t v = v_arg, m = m_arg;
168
169 for (x = head; x->rn_bit >= 0;) {
170 if ((x->rn_bmask & m[x->rn_offset]) &&
171 (x->rn_bmask & v[x->rn_offset]))
172 x = x->rn_right;
173 else
174 x = x->rn_left;
175 }
176 return (x);
177}
178
179int
180rn_refines(void *m_arg, void *n_arg)

Callers 1

rn_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected