🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.net.ip
Article #175

Re: IPアドレスの表記方法

#175
From: Motoyuki Kasahara
Date: Sat, 24 Aug 2002 23:22
34 lines
2127 bytes
余談ですが、

* From: kabe@sra-tohoku.co.jp 
* Message-ID: <ak6f7b$it8$1@yagi.ecei.tohoku.ac.jp>
> >> 1.1 = 1.0.0.1
> >> 192.168.1 = 192.168.0.1
> >> 
> >> これって、常識なのでしょうか?
> 
> inet_addr(3)

でも、inet_pton(3) は受け付けないんですよね。

IEEE Std 1003.1-2001:
| If the af argument of inet_pton() is AF_INET, the src string shall
| be in the standard IPv4 dotted-decimal form:
| 
| ddd.ddd.ddd.ddd
| 
| where "ddd" is a one to three digit decimal number between 0 and 255
| (see inet_addr() ). The inet_pton() function does not accept other
| formats (such as the octal numbers, hexadecimal numbers, and fewer
| than four numbers that inet_addr() accepts).

FreeBSD-4.6 でも
	telnet 127.1
	telnet ::ffff:127.0.0.1

は大丈夫ですが
	telnet ::ffff:127.1 

は駄目だったりしますし。
________________________________________________________________
笠原 基之(かさはら もとゆき)
Technical Details
Message-ID: <ak94ge$1e2t$1@sranhh.sra.co.jp>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uunet!sea.uu.net!osa.uu.net!newsfeed.mesh.ad.jp!jpix!nntp2.iprev.net!nntp1.iprev.net!giga-nspixp2!np0.iij.ad.jp!news.iij.ad.jp!news.sra.co.jp!news2.sra.co.jp!m-kasahr
References: <m3d6s9hb98.wl@au.home.yk.tp> <ak6f7b$it8$1@yagi.ecei.tohoku.ac.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 10636f,4522ff94085aad1c
X-Google-Attributes: gid10636f,public
X-Google-ArrivalTime: 2002-08-24 16:35:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uunet!sea.uu.net!osa.uu.net!newsfeed.mesh.ad.jp!jpix!nntp2.iprev.net!nntp1.iprev.net!giga-nspixp2!np0.iij.ad.jp!news.iij.ad.jp!news.sra.co.jp!news2.sra.co.jp!m-kasahr
From: m-kasahr@sra.co.jp (Motoyuki Kasahara)
Newsgroups: fj.net.ip
Subject: Re: IPアドレスの表記方法
Date: 24 Aug 2002 23:22:54 GMT
Organization: Software Research Associates, Inc., Japan
Lines: 34
Message-ID: <ak94ge$1e2t$1@sranhh.sra.co.jp>
References: <m3d6s9hb98.wl@au.home.yk.tp>
 <ak6f7b$it8$1@yagi.ecei.tohoku.ac.jp>
NNTP-Posting-Host: srapc1081.sra.co.jp
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Trace: sranhh.sra.co.jp 1030231374 47197 133.137.170.49 (24 Aug 2002 23:22:54 GMT)
X-Complaints-To: news@sra.co.jp
NNTP-Posting-Date: 24 Aug 2002 23:22:54 GMT
X-Newsreader: mnews [version 1.22] 1999-12/19(Sun)