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

Function inm_lookup

freebsd/netinet/in_mcast.c:395–408  ·  view source on GitHub ↗

* Wrapper for inm_lookup_locked(). * The IF_ADDR_LOCK will be taken on ifp and released on return. */

Source from the content-addressed store, hash-verified

393 * The IF_ADDR_LOCK will be taken on ifp and released on return.
394 */
395struct in_multi *
396inm_lookup(struct ifnet *ifp, const struct in_addr ina)
397{
398 struct epoch_tracker et;
399 struct in_multi *inm;
400
401 IN_MULTI_LIST_LOCK_ASSERT();
402 NET_EPOCH_ENTER(et);
403
404 inm = inm_lookup_locked(ifp, ina);
405 NET_EPOCH_EXIT(et);
406
407 return (inm);
408}
409
410/*
411 * Find an IPv4 multicast group entry for this ip_moptions instance

Callers 5

in_getmultiFunction · 0.85
igmp_input_v2_queryFunction · 0.85
igmp_input_v3_queryFunction · 0.85
igmp_input_v1_reportFunction · 0.85
igmp_input_v2_reportFunction · 0.85

Calls 1

inm_lookup_lockedFunction · 0.85

Tested by

no test coverage detected