Date: Tue, 30 Nov 2004 22:38:38 +0000 (UTC) From: Max Laier <mlaier@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_domain.c src/sys/net if.c src/sys/sys domain.h Message-ID: <200411302238.iAUMccFU029077@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411302238.iAUMccFU029077>