From owner-freebsd-hackers Tue Mar 12 08:06:59 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA25096 for hackers-outgoing; Tue, 12 Mar 1996 08:06:59 -0800 (PST) Received: from boom.vars.com (boom.BSDI.COM [205.230.226.129]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA25090 for ; Tue, 12 Mar 1996 08:06:55 -0800 (PST) Received: from boom.vars.com (localhost.vars.com [127.0.0.1]) by boom.vars.com (8.7.3/8.6.5) with ESMTP id JAA14843 for ; Tue, 12 Mar 1996 09:06:19 -0700 (MST) Message-Id: <199603121606.JAA14843@boom.vars.com> To: hackers@freefall.freebsd.org Subject: Re: hackers-digest V1 #974 In-Reply-To: Your message of "Mon, 11 Mar 1996 23:24:27 PST." <199603120724.XAA10173@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: application/pgp; format=mime; x-action=signclear; x-originator=05448C39 Content-Transfer-Encoding: 7bit Date: Tue, 12 Mar 1996 09:06:19 -0700 From: Eric Varsanyi Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- Content-Type: text/plain; charset=us-ascii >> I am also thinking of really hooking the driver to the ethernet code >> and just convert tokenring<->ethernet in my driver. So to the machine >> it will look like this is an ethernet driver but to the network >> it will look like its a tokenring. >> >> Yaser Doleh You also need to deal with 802.5 source routing and the various flavors of broadcast on token ring (local ring, single-route, and all-routes). Token ring MAC headers are of variable length so it makes sense to create a new set of routines to deal with it (if_tokensubr.c for instance) instead of trying to use the ethernet routines and tranlate in the driver. An easy way to handle the source route<->IP mappings is to use arp to cache the source routes (don't forget to update the 'netstat' and 'arp' commands too). For arp on a multi-ring network it seems the best strategy is to cache the source route to the first reply received and ignore the next few (the first route found this way should be the shortest). - -Eric -----BEGIN PGP SIGNATURE----- Version: 2.6 iQCVAgUBMUWg+jxFdSMFRIw5AQGifgP9HHmBRWJFPoKasEaymOZbT5TB+gTjm/z0 vhDQZ63HDyjhhdSSYBH8Vyuvht00PpI3m4XZkrcGWonil45zVgJBdVN+CmPDJwUk GhmAwzJBRGALZhRio1fD7zP7P4FEUTC64xOcIMQejyZ5AoZyBy5BmRGDb2uP493z hrEaJzOdTKk= =JZgk -----END PGP SIGNATURE-----