Re: new routing protocol

From: Diomidis Spinellis (dds_at_aueb.gr)
Date: 08/20/03

  • Next message: Orion Hodson: "Re: ASUS P4P800-VM + AD1980 (Was Re: VIA8235 + AD1980)"
    Date: Wed, 20 Aug 2003 02:28:48 +0300
    To: jtoung@arc.nasa.gov
    
    

    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
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Orion Hodson: "Re: ASUS P4P800-VM + AD1980 (Was Re: VIA8235 + AD1980)"

    Relevant Pages

    • Cisco IP Phone H.323 with Avaya IP Office
      ... I would like to know if anyone else has never tested this environment ... IP Office should support H.323 protocol V2, negotiation and ...
      (comp.dcom.sys.cisco)
    • Re: Remoting and Robotics
      ... I think a connection based protocol will ... With a connection based protocol you will often ... I'm developing a remote control panel for a mobile robot I'm developing. ... Also make the other usual assumptions of a robotic environment vs. a ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: ?? ??
      ... > I've seen it in countless MS docs and on countless MS blogs and ... newline string defined for this environment." ... want the newline string defined for a particular protocol. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: PS/2 Mouse Problem!
      ... Kaveh Gh wrote: ... >ImPS/2. ... In X environment, ... which kind of protocol I have to test? ...
      (Debian-User)
    • Re: [PATCH] [REPOST] x86_64, i386: Add command line length to boot protocol
      ... Boot protocol 2.02 introduced the null terminated string truncated by ... of the command line the kernel can understand. ...
      (Linux-Kernel)