From owner-freebsd-current Sat Jul 1 17:34:36 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id RAA08960 for current-outgoing; Sat, 1 Jul 1995 17:34:36 -0700 Received: from ess.harris.com (su15a.ess.harris.com [130.41.1.251]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id RAA08954 for ; Sat, 1 Jul 1995 17:34:35 -0700 Received: from borg.ess.harris.com (suw2k.ess.harris.com) by ess.harris.com (5.x/SMI-SVR4) id AA27664; Sat, 1 Jul 1995 20:34:31 -0400 Received: by borg.ess.harris.com (4.1/SMI-4.1) id AA00609; Sat, 1 Jul 95 20:32:10 EDT Date: Sat, 1 Jul 95 20:32:10 EDT From: jleppek@suw2k.ess.harris.com (James Leppek) Message-Id: <9507020032.AA00609@borg.ess.harris.com> To: freebsd-current@freefall.cdrom.com Subject: Re: ppp Sender: current-owner@FreeBSD.org Precedence: bulk I suspect the fact that 0.0.0.0 was invalid is why my provider chose it. This allows them to detect that someone must be provided an IP (although I would not mind if they would give me a permanent IP :-) ) I am still unclear as to the reason for the non-intuitive mapping of 0 to 192.0.0.1 Hmmmmmmm Ahh well another mystery of life, thats what sources are for :-) Jim > From owner-freebsd-current@freefall.cdrom.com Sat Jul 1 14:59:04 1995 > From: J Wunsch > 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 > 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 > Sender: current-owner@FreeBSD.org > > 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. ;-) >