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

Function if_clone_advanced

freebsd/net/if_clone.c:388–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388struct if_clone *
389if_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
408struct if_clone *
409if_clone_simple(const char *name, ifcs_create_t create, ifcs_destroy_t destroy,

Callers 5

stfmodeventFunction · 0.85
vnet_epair_initFunction · 0.85
vnet_tun_initFunction · 0.85
vlan_modeventFunction · 0.85
vnet_vlan_initFunction · 0.85

Calls 2

if_clone_allocFunction · 0.85
if_clone_attachFunction · 0.85

Tested by

no test coverage detected