From owner-freebsd-net Fri Nov 17 17:39:14 2000 Delivered-To: freebsd-net@freebsd.org Received: from homer.softweyr.com (mail.dobox.com [208.187.122.44]) by hub.freebsd.org (Postfix) with ESMTP id 34C1537B479 for ; Fri, 17 Nov 2000 17:39:12 -0800 (PST) Received: from [127.0.0.1] (helo=softweyr.com ident=Fools trust ident!) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 13wwzp-0000Sy-00; Fri, 17 Nov 2000 18:40:49 -0700 Message-ID: <3A15DE21.3E33067A@softweyr.com> Date: Fri, 17 Nov 2000 18:40:49 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Falco Krepel Cc: "freebsd-net@FreeBSD.ORG" Subject: Re: New Protocol over Ethernet References: <3A142E0C.1B1D18DD@fokus.gmd.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Falco Krepel wrote: > > Hi, > > 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. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message