Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!djh From: djh@cs.mu.oz.au (David Hornsby) Newsgroups: comp.protocols.appletalk Subject: Re: CAP on Sun 386i? Message-ID: <7142@munnari.oz.au> Date: 23 Mar 91 06:57:38 GMT References: <1991Mar21.211105.29279@bronze.ucs.indiana.edu> Organization: Comp Sci, Melbourne Uni, Australia Lines: 29 In an article jwd@phil.indiana.edu (Jon Dunn) writes: > I have been trying to get CAP 6.0 running on a Sun386i under SunOS 4.0.2. This problem seems to be fixed, it related to the byte ordering on a 386i. A missing htons() caused AARP packets to appear with reversed Ethernet protocol field (0xf380 instead of 0x80f3). The line of code in snitp.c (and for that matter, in senetp.c) should now be eh->ether_type = htons(eph->protocol); The htons() will also be missing from all UAB/UAB+ distributions and ru-cap2. I haven't made a CAP 6.0 patch yet as I would like some more information ... 1. Is anyone running any of the UAB distributions on a SUN 386i ? Apart from the (presumed) missing htons(), were there any other changes ? 2. Has anyone added the enet Ethernet Driver support to a SUN 386i kernel ? (enet requires 4.0.3c or greater, does that exist for the 386i ?). 3. In senetp.c there is a line of the form ethert = prot; which adds AARP to the list of protocols that will be passed to the enet handler. Should this be htons(prot) for use in a BYTESWAPPED environment ? Questions, questions ... - David.