Date: Wed, 20 Aug 2003 02:28:48 +0300 From: Diomidis Spinellis <dds@aueb.gr> To: jtoung@arc.nasa.gov Cc: freebsd-hackers@freebsd.org Subject: Re: new routing protocol Message-ID: <3F42B2B0.FDC3DC9@aueb.gr> References: <200308191602.40166.jtoung@arc.nasa.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
Jerry Toung wrote: > I am in the process of implementing a routing protocol under 5.0. [...] > My problem is dealing with debuging and portability. With this raw approach I > guess I will have to run builkernel and installkernel all the time. How can I > avoid that? I thought about kernel modules, but I don't know what kind to use > (SYSCALL_MODULE or DEV_MODULE,etc..) and how about netgraph.? does that make > sense? [ I was about to ask why we need another networking protocol, but then noticed the sender's domain :-) ] I suggest you first build userland applications that emulate the kernel's networking behavior that affects your protocol. Build and test your protocol in userland on top of that environment, and once you are happy with it, plug it into the kernel. You will thus gain: - a very fast turnaround compile/test time - the ability to use better debugging and profiling tools - the flexibility compile and run your code in the environment you prefer You might even want to keep your code buildable under the emulated environment and the real kernel using suitable stubs or conditional compilation. I have used such techniques a number of times; you typically recoup your initial investment very quickly. Diomidis - dds@FreeBSD.org - http://www.spinellis.gr
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F42B2B0.FDC3DC9>