[comp.protocols.appletalk] CAP on Sun 386i?

jwd@phil.indiana.edu (Jon Dunn) (03/22/91)

I have been trying to get CAP 6.0 running on a Sun386i under SunOS 4.0.2.
I've managed to compile and install CAP (configured to use the
EtherTalk /dev/nit interface), but it does not seem to work.
aarpd and atis start up fine and node and network addresses
are acquired correctly, but I cannot see anything using
atlook or getzones.  Running in debug mode, I see the
following errors when I do an atlook:

00:50:15 03/21/91  setting bridge address
00:50:15 03/21/91  New default router 34304.228, goodness -1->53
00:50:18 03/21/91  request for bridge address
00:50:18 03/21/91  request for 228
00:50:19 03/21/91  etalk_resolve: node 228 try again later
00:50:20 03/21/91  request for 228
00:50:20 03/21/91  etalk_resolve: node 228 try again later

Has anyone else tried to use CAP on a 386i?  Have you had any
success?  Thanks!

-Jon Dunn
 jwd@phil.indiana.edu

djh@cs.mu.oz.au (David Hornsby) (03/23/91)

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.