cvs commit: src/sys/kern uipc_domain.c src/sys/net if.c
src/sys/sys domain.h
Max Laier
mlaier at FreeBSD.org
Tue Nov 30 14:38:38 PST 2004
mlaier 2004-11-30 22:38:37 UTC
FreeBSD src repository
Modified files:
sys/kern uipc_domain.c
sys/net if.c
sys/sys domain.h
Log:
Implement the check I was talking about in the previous message already.
Introduce domain_init_status to keep track of the init status of the domains
list (surprise). 0 = uninitialized, 1 = initialized/unpopulated, 2 =
initialized/done. Higher values can be used to support late addition of
domains which right now "works", but is potential dangerous. I choose to
only give a warning when doing so.
Use domain_init_status with if_attachdomain[1]() to ensure that we have a
complete domains list when we init the if_afdata array. Store the current
value of domain_init_status in if_afdata_initialized. This way we can update
if_afdata after a new protocol has been added (once that is allowed).
Submitted by: se (with changes)
Reviewed by: julian, glebius, se
PR: kern/73321 (partly)
Revision Changes Path
1.41 +37 -0 src/sys/kern/uipc_domain.c
1.213 +4 -4 src/sys/net/if.c
1.20 +1 -0 src/sys/sys/domain.h
More information about the cvs-all
mailing list