| 386 | } |
| 387 | |
| 388 | struct if_clone * |
| 389 | if_clone_advanced(const char *name, u_int maxunit, ifc_match_t match, |
| 390 | ifc_create_t create, ifc_destroy_t destroy) |
| 391 | { |
| 392 | struct if_clone *ifc; |
| 393 | |
| 394 | ifc = if_clone_alloc(name, maxunit); |
| 395 | ifc->ifc_type = ADVANCED; |
| 396 | ifc->ifc_match = match; |
| 397 | ifc->ifc_create = create; |
| 398 | ifc->ifc_destroy = destroy; |
| 399 | |
| 400 | if (if_clone_attach(ifc) != 0) |
| 401 | return (NULL); |
| 402 | |
| 403 | EVENTHANDLER_INVOKE(if_clone_event, ifc); |
| 404 | |
| 405 | return (ifc); |
| 406 | } |
| 407 | |
| 408 | struct if_clone * |
| 409 | if_clone_simple(const char *name, ifcs_create_t create, ifcs_destroy_t destroy, |
no test coverage detected