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

Function stfmodevent

freebsd/net/if_stf.c:285–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285static int
286stfmodevent(module_t mod, int type, void *data)
287{
288
289 switch (type) {
290 case MOD_LOAD:
291 stf_cloner = if_clone_advanced(stfname, 0, stf_clone_match,
292 stf_clone_create, stf_clone_destroy);
293 break;
294 case MOD_UNLOAD:
295 if_clone_detach(stf_cloner);
296 break;
297 default:
298 return (EOPNOTSUPP);
299 }
300
301 return (0);
302}
303
304static moduledata_t stf_mod = {
305 "if_stf",

Callers

nothing calls this directly

Calls 2

if_clone_advancedFunction · 0.85
if_clone_detachFunction · 0.85

Tested by

no test coverage detected