[comp.protocols.appletalk] KIP and UNSUBNETTED class B networks

joachim@iravcl.ira.uka.de (07/02/88)

KIP 06/88 and all versions before contain a bug that makes setup of
unsubnetted class B networks a pain - they require usage of H lines.

Note that KIP routing requires specification of IP numbers up to the
third byte. You cannot use an entry of the form N2 for the entire
ethernet. You must run _logically_ subnetted.

The bug is that KIP will ADD 255.255 to the network address to form
the broadcast address. An OR is more appropriate.

The following patch will fix this problem. It has been tested on
a class B network, where all hosts are assigned IP numbers of
129.13.5.x, the fastpathes have IPs in the range 129.13.53.y. CAP
is up and running on host 129.13.5.1.

Note that the modification has not been tested with multiple hosts
running CAP with IP numbers in different _logical_ subnets. 

kip0688/gw.c:
726c726
<             ar->node | ipbroadtypes[ar->flags&arouteBMask];
---
>             ar->node + ipbroadtypes[ar->flags&arouteBMask];

If you don't want to recompile the gateway code, patch the srec file...
kip0688/gw.srec:
386c386
< S2100652000006A4282040201080932D40B5
---
> S2100652000006A42820402010D0932D4065

Joachim Lindenberg, Dept. of Computer Science, University of Karlsruhe
Sommerstrasse 4, 7500 Karlsruhe 1, Federal Republic of Germany
joachim@ira.uka.de, joachim@germany.csnet, ..!mcvax!unido!uka!joachim