* if_clone_addgroup() decrements ifc_refcnt because it is called after * if_clone_findifc(). */
| 561 | * if_clone_findifc(). |
| 562 | */ |
| 563 | void |
| 564 | if_clone_addgroup(struct ifnet *ifp, struct if_clone *ifc) |
| 565 | { |
| 566 | if ((ifc->ifc_flags & IFC_NOGROUP) == 0) { |
| 567 | if_addgroup(ifp, ifc->ifc_name); |
| 568 | IF_CLONE_REMREF(ifc); |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | /* |
| 573 | * A utility function to extract unit numbers from interface names of |
no test coverage detected