From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] cs & sysname In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-bhcrugsurxvmwgwvhatdlqudjf" Date: Tue, 25 Nov 2003 08:26:16 -0500 Topicbox-Message-UUID: 931fee16-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-bhcrugsurxvmwgwvhatdlqudjf Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I changed and updated libip's myipaddr to totally ignore loopback. It used to return a non loopback address if it found one and failing that the loopback address if it found one. Now it just errors out if there is no non-loopback address. Also, you could have avoided the problem by setting up a real ip address before running cs since it preferentially chose such an address. --upas-bhcrugsurxvmwgwvhatdlqudjf Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Tue Nov 25 08:09:39 EST 2003 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Tue Nov 25 08:09:36 EST 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 4EC4D19B64; Tue, 25 Nov 2003 08:09:26 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.18.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id A97CE19B35; Tue, 25 Nov 2003 08:09:12 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 0B06119AF6; Tue, 25 Nov 2003 08:08:16 -0500 (EST) Received: from plan9.cs.bell-labs.com (plan9.bell-labs.com [204.178.31.2]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 21A36199DB for <9fans@cse.psu.edu>; Tue, 25 Nov 2003 08:08:04 -0500 (EST) Message-ID: From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] cs & sysname In-Reply-To: <81132473206F3A46A72BD6116E1A06AE056154@black.aprote.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-izhiifaxbpgbijtrfsrgpxmnfy" Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 25 Nov 2003 08:08:02 -0500 X-Spam-Status: No, hits=-0.5 required=5.0 tests=IN_REP_TO version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) This is a multi-part message in MIME format. --upas-izhiifaxbpgbijtrfsrgpxmnfy Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I'll fix cs. It really shouldn't accept the loopback address as the local one. --upas-izhiifaxbpgbijtrfsrgpxmnfy Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Tue Nov 25 07:38:36 EST 2003 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Tue Nov 25 07:38:34 EST 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id C0C9219B62; Tue, 25 Nov 2003 07:38:26 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 7AE6119B2F; Tue, 25 Nov 2003 07:38:12 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 213C819B0E; Tue, 25 Nov 2003 07:37:43 -0500 (EST) Received: from ns.aprote.ee (ns.aprote.ee [80.235.78.106]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 931CD19A64 for <9fans@cse.psu.edu>; Tue, 25 Nov 2003 07:37:31 -0500 (EST) Received: Message by Barricade ns.aprote.ee with ESMTP id hAPCbNGN015808 for <9fans@cse.psu.edu>; Tue, 25 Nov 2003 14:37:23 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: <81132473206F3A46A72BD6116E1A06AE056154@black.aprote.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [9fans] Shutdown service Thread-Index: AcOzRfxYZlVOJrUNTaqwLjXoU8nuTgAB/Vhg From: "Tiit Lankots" To: <9fans@cse.psu.edu> Subject: [9fans] cs & sysname Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 25 Nov 2003 14:37:27 +0200 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) After setting up venti, cs stopped recognising my sysname. It was because the loopback interface got up first on boot, and because cs looks first by ip address. Now, I had two alternative ways to deal with it: 1) Poke around in /sys/src/cmd/ndb/cs.c and edit it to look by the ethernet address when by ip it did not succeed.=20 I did it. 2) Write the ip I get from the dhcp server into /lib/ndb/local. I did it too. Now it works. Basically, 2) would've sufficed. OK, now for the question: Is 2) the "standard" way of dealing with this? What to do when the ip returned by dhcp is random? Tiit --upas-izhiifaxbpgbijtrfsrgpxmnfy-- --upas-bhcrugsurxvmwgwvhatdlqudjf--