Date: Wed, 6 Oct 2004 18:23:17 +0200 From: Max Laier <max@love2party.net> To: freebsd-net@freebsd.org Cc: Waldemar Kornewald <Waldemar.Kornewald@web.de> Subject: Re: modularization Message-ID: <200410061823.24492.max@love2party.net> In-Reply-To: <41640CEE.9070900@web.de> References: <41640CEE.9070900@web.de>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Wednesday 06 October 2004 17:19, Waldemar Kornewald wrote: > Hi, > are there any plans to mularize the netstack (maybe: protocol+interface > modules)? > Would it be difficult to modularize it? One problem you will hit here, is that you will have to do a lot of additional locking for structures that do not change right now, but are heavily used. The domains list is just one example of the top of my head. There are certainly other places as well. Another issue is the load/unload process. You have to make sure that everything that is there already is hooked up correctly and you must protect these subsystems as well. Then there are pieces of code that are used from more than one protocol (e.g. we have a unified tcp stack on top of IPv4 and IPv6). These systems use #ifdefs at the moment. In order to be able to load IPv6 as a module, you'd have to rewrite a lot of code. So it's hard - to say the least. > I am also interested in your opinion about it: > Does it make sense to modularize the netstack? Why would a > monolithic/modular netstack be better? Given the additional locking requirements and the additional checks, lookups and function calls I hardly believe that it is a good idea. There might be protocols that are easily plugged, but you can certainly do them at the netgraph layer as well. Netgraph is a interesting thing to look at in any case, when talking modularity. -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBZBv8XyyEoT62BG0RAvMtAJ45XyoQhZUjwR9nRf4gYmZrEmBOuACfc4wB IP4drXQWOpR0f4XM2yUDKJA= =5Sk6 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410061823.24492.max>
