Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2000 17:40:09 -0800 (PST)
From:      Archie Cobbs <archie@dellroad.org>
To:        Wes Peters <wes@softweyr.com>
Cc:        Falco Krepel <krepel@fokus.gmd.de>, "freebsd-net@FreeBSD.ORG" <freebsd-net@FreeBSD.ORG>
Subject:   Re: New Protocol over Ethernet
Message-ID:  <200011180140.eAI1e9T38050@curve.dellroad.org>
In-Reply-To: <3A15DE21.3E33067A@softweyr.com> "from Wes Peters at Nov 17, 2000 06:40:49 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Wes Peters writes:
> > I want to implement my own protocol on top of ethernet. This protocol
> > should should not influence other protocols running on the system. So I
> > must distinguish my own frames from other frames.
> > 
> > Because this is my first time to implement such a protocol on FreeBSD I
> > am not sure how I can do this. I have read some documentation about
> > interprocess communication within FreeBSD, the TCP/IP illustrated book,
> > ... Furthermore I study the BSD source code around network
> > communication. But until now it is not clarify how I can do this in the
> > best way.
> > 
> > [...]
> > 
> > 2. I attach direct to the ethernet interface. This means I must add a
> > new protocol class to get only my own frames. Is that right?
> 
> Yes, and this would be the "best" way to do this.  Preferrably, you 
> would add the middle layer interfaces, using the network interface
> drivers on the bottom and the socket layer on the top; your protocol
> would be analagous to IPv4 and IPv6.
> 
> /usr/src/sys/net* are examples of existing protocols.  inet and inet6 are
> the most developed, of course.

Or prototype it all in userland using ng_ether(4) and the "orphans" hook.

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011180140.eAI1e9T38050>