Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2001 09:04:37 +1200
From:      "Juha Saarinen" <juha@saarinen.org>
To:        "'Kevin Oberman'" <oberman@es.net>
Cc:        <freebsd-stable@FreeBSD.ORG>
Subject:   RE: loopback not working for anything other than 127.0.0.1 
Message-ID:  <003301c14473$5b622110$0a01a8c0@den2>
In-Reply-To: <200109232040.f8NKeoR13940@ptavv.es.net>

next in thread | previous in thread | raw e-mail | index | archive | help
:: I don't think any RFC actually calls for this, but 1122 is probably
:: the relevant reference. From 3.2.1.3:
:: (g)  { 127, <any> }
:: 
::      Internal host loopback address.  Addresses of this form
::      MUST NOT appear outside a host.

Hmmm... that doesn't seem to cover it. I can't find anything that
defines whether you should use 127/8 or just 127.0.0.1.

The include/in.h for Linux 2.4 seems to do both, in a way:

/* Network number for local host loopback. */
#define IN_LOOPBACKNET          127

/* Address to loopback in software to local host.  */
#define INADDR_LOOPBACK         0x7f000001      /* 127.0.0.1   */
#define IN_LOOPBACK(a)          ((((long int) (a)) & 0xff000000) ==
0x7f000000)

-- 
Juha


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003301c14473$5b622110$0a01a8c0>