It is not very simple. However Netgraph/ng_socket.c does something similar.
net_add_domain is called from ngs_mod_event().
However, it is not possible to remove this module because the feature to
remove a domain is missing.
switch (event) {
case MOD_LOAD:
/* Regi
Radoslav Vasilev wrote:
> I'm interested in whether the following could be acomplished:
> there's KLD module, installing some new syscalls in the kernel, as well as
> installing new ``struct ipprotosw'' for some protocol or another(let's
> assume IPPROTO_UDP).
> Could we just add some code in the b