Re: FreeBSD IP Device Driver

From: Brooks Davis (brooks_at_one-eyed-alien.net)
Date: 01/30/04

  • Next message: Mike Silbersack: "Re: net.inet.icmp.icmplim change issues"
    Date: Fri, 30 Jan 2004 10:13:12 -0800
    To: Erik Hamilton <ehamilt@siue.edu>
    
    
    

    On Fri, Jan 30, 2004 at 11:34:41AM -0600, Erik Hamilton wrote:
    > I'm currently working on building a simple token ring networking scheme
    > over the parallel port (/dev/ppi0) for a graduate project. The project
    > itself is to be used later for educational purposes, illustrating how you
    > can build a network from the ground up through hardware developement,
    > framing, and layering. The hardware is done, simple token managment is
    > working, and data can be passed around the ring. So basically I have the
    > physical and datalink layers mostly done. It's my understanding that if I
    > can get my program to speak IP to FreeBSD (through a kernel module or
    > something else) I could inherit its TCP/IP stack.
    >
    > Ideally I would like to have my simple token ring as another network
    > device that could be used just like any other network interface. I've been
    > reading through FreeBSD's handbooks and poking through /usr/src/sys/dev/.
    >
    > * Developers' Handbook:
    > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.html
    >
    > * FreeBSD Architecture Handbook (esp. Section II: Device Drivers):
    > http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html
    >
    > Basically I think I'm just looking for some guidance. Am I on the right
    > track? or am I confused? I haven't had the best luck with google, so any
    > other reading material would be greatly appreciated.

    Those are good places to look. I'd specifictly recommend looking at the
    implementation of the plip driver since that interfaces to the parallel
    port. Depending on how your device works (what the datalink layer looks
    like, what your timing requirements are, etc.), you might find it easier
    to handle the transmission through a userland program using tap or tun
    devices or possiably a combination of netgraph nodes. Actually, making
    a netgraph parallel port device might simplify your life tremendously if
    you decide to work in the kernel.

    One thing that would help you would be if your datalink layer looks
    enough like ethernet that you can use ARP so you don't have to rebuild
    the link layer to IP mapping code.

    -- Brooks

    -- 
    Any statement of the form "X is the one, true Y" is FALSE.
    PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
    
    



  • Next message: Mike Silbersack: "Re: net.inet.icmp.icmplim change issues"

    Relevant Pages

    • Re: Help with theory question on network topology
      ... > of the difference between a gateway and a hub. ... a router operates at the network or transport layer (the layer ... >>> Not all data packets pass through the gateway (My guess, ... >> the Token Ring and something else, the nature of Token Ring has little to ...
      (comp.dcom.lans.ethernet)
    • Re: Help with theory question on network topology
      ... I assumed this was an error and replaced it so that the ethernet linked-devices could exchange data with the token ring devices, but with hindsight, the "error" might have been intentional -- an attempt to psoe this very question and test knowledge of the difference between a gateway and a hub. ... A "gateway" seems to be a more sophisticated bridge, and a "router" may well contain hardware components that allow it to move data between different protocols. ... A bridge is _always_ a layer 2 device, meaning it forwards frames to and from two different network segments. ...
      (comp.dcom.lans.ethernet)
    • Re: why is Token ring expensive than ethernet
      ... :Token ring networks are expensive but they allow 100% usage of the bandwidth ... :the network is capable of at all times, the reson being that only 1 person ... I was never a student of Token Ring, but I know that what you are saying ...
      (comp.dcom.lans.ethernet)
    • Re: Quadra 650 Connection to a USB External Hard Drive
      ... Why the hell did we have AUI connectors ... At the time there were four major types of network in common use: Token Ring, ... which was not based in Ethernet, and three varieties of Ethernet: ...
      (uk.comp.sys.mac)
    • Re: Token ring adapter/Ethernet Lan cards difference? and LEAF.
      ... Token Ring is maybe a network medium as is Ethernet but that is around the only ... Ethernet is more like a bus. ... cards where around 1/5 the cost of a TR card. ...
      (comp.os.linux.security)