Patch #: 4 Type: bug fix Priority: high Affects: CAP with Native EtherTalk (NBP registration fails) Reported: David Hornsby Archived: munnari.OZ.AU mac/cap.patches/cap60.patch004 Summary: Bridge IP address in etalk.local must be 127.0.0.1 File: cap60/support/ethertalk/aarpd.c *** support/ethertalk/aarpd.c.orig Wed Mar 13 19:34:49 1991 --- support/ethertalk/aarpd.c Mon Apr 8 20:40:23 1991 *************** *** 13,18 **** --- 13,19 ---- #include #include #include + #include #include #include #include *************** *** 26,31 **** --- 27,33 ---- extern void aarpdprog(); /* the RPC program interface */ extern char interface[50]; /* which ethernet device */ extern char this_zone[34]; /* zone for this host */ + extern struct in_addr bridge_addr; /* IP address for local bridge */ extern byte bridge_node; /* the local bridge */ extern word bridge_net; /* the local bridge */ extern byte this_node; /* this host node */ *************** *** 79,84 **** --- 81,87 ---- openetalkdb(NULL); /* open/create etalk.local */ nis_net = this_net = 0; /* assume that we don't know */ + bridge_addr.s_addr = inet_addr("127.0.0.1"); baddr.node = bridge_node; /* set bridge addr hint */ baddr.net = bridge_net; *************** *** 260,265 **** --- 263,269 ---- bcopy(bad, &baddr, sizeof(baddr)); bridge_node = baddr.node; bridge_net = this_net = nis_net = baddr.net; + bridge_addr.s_addr = inet_addr("127.0.0.1"); etalkdbupdate(NULL); /* write the info. back out */ return((u_char *) &baddr); }