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

Function memodevent

freebsd/net/if_me.c:659–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657};
658
659static int
660memodevent(module_t mod, int type, void *data)
661{
662
663 switch (type) {
664 case MOD_LOAD:
665 me_srcaddrtab = ip_encap_register_srcaddr(me_srcaddr,
666 NULL, M_WAITOK);
667 ecookie = ip_encap_attach(&me_encap_cfg, NULL, M_WAITOK);
668 break;
669 case MOD_UNLOAD:
670 ip_encap_detach(ecookie);
671 ip_encap_unregister_srcaddr(me_srcaddrtab);
672 break;
673 default:
674 return (EOPNOTSUPP);
675 }
676 return (0);
677}
678
679static moduledata_t me_mod = {
680 "if_me",

Callers

nothing calls this directly

Calls 4

ip_encap_attachFunction · 0.85
ip_encap_detachFunction · 0.85

Tested by

no test coverage detected