* Wrapper for inm_lookup_locked(). * The IF_ADDR_LOCK will be taken on ifp and released on return. */
| 393 | * The IF_ADDR_LOCK will be taken on ifp and released on return. |
| 394 | */ |
| 395 | struct in_multi * |
| 396 | inm_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 |
no test coverage detected