From owner-freebsd-current Sat Jul 1 03:13:05 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA11531 for current-outgoing; Sat, 1 Jul 1995 03:13:05 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id DAA11506 for ; Sat, 1 Jul 1995 03:13:02 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA00966; Sat, 1 Jul 1995 12:12:59 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id MAA02968; Sat, 1 Jul 1995 12:12:53 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id LAA00795; Sat, 1 Jul 1995 11:37:33 +0200 From: J Wunsch Message-Id: <199507010937.LAA00795@uriah.heep.sax.de> Subject: Re: ppp To: jleppek@harris.com (Jim Leppek) Date: Sat, 1 Jul 1995 11:37:32 +0200 (MET DST) Cc: freebsd-current@freefall.cdrom.com In-Reply-To: <199506302350.TAA00567@cyclops> from "Jim Leppek" at Jun 30, 95 07:50:44 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 880 Sender: current-owner@FreeBSD.org Precedence: bulk As Jim Leppek wrote: > > why does a requested IP of 0.0.0.0 get converted to > 192.0.0.1 in ipcp.c line 164 ? > > > if (icp->want_ipaddr.s_addr == 0) > icp->want_ipaddr.s_addr = htonl(0xc0000001); > > > My provider expected an IP of 0.0.0.0 to indicate a dynamic ppp connection > and this "feature" did cause a bit of confusion as a ifaddr 0 0 > does not really work. 0.0.0.0 is an invalid address. It's used to access any listener on the localhost (e.g. you can telnet 0 to your own host), and to describe a default route. No idea about the 192.0.0.1 however. Dynamic PPP address assignment requires valid IP addresses, but those addresses must be negotiated by the PPP peers. This is part of the PPP protocol (AFAIK). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)