>>On z/OS (and I assume other IBM mainframe operating systems) a
>> leading zero signifies a leading zero, not a switch to octal.
>> 
>> We include leading zeroes in some IP addresses because it 
>> simplifies sorting.

>  READY
>nslookup 10.20.100.4
>  EZB3170I Server:  ...
>  EZB3172I Address:  ...
>
>  EZB3170I Name:    host...
>  EZB3172I Address:  10.20.100.4
>
>  READY
>nslookup 10.020.100.4
>  EZB3170I Server:  ...
>  EZB3172I Address:  ...
>
>  EZB3010I *** ... can't find 10.020.100.4: Non-existent domain
>
>At least as of z/OS 1.9.
>
>Bob

Seems to be situational.  Here, 10.208.12.21 resolves the same as
10.208.012.021...


info from an old APAR:

PQ74543: PING TREATS IP ADDRESSES WITH LEADING ZEROES AS OCTAL NUMBERS INSTEAD
OF DECIMAL NUMBERS.
  

APAR status
Closed as fixed if next.

Error description 
Ping treats IP addresses with leading zeroes as octal numbers.
A ping of IP address 9.017.3.4 will result in a ping being
sent to IP address 9.15.3.4.  Ping is using the C library call
inet_addr to convert the IP address into a in_addr structure.
inet_addr interprets number with leading zeroes as octal. Ping
should be using inet_pton, which does not do this conversion.
.
http://www-01.ibm.com/support/docview.wss?rs=852&context=SSSN3L&q1=ip+address+oc
tal&uid=isg1PQ74543&loc=en_US&cs=utf-8&lang=en 


so, inet_addr  vs.  inet_pton?
more digging to do   :-)

Ed  

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Anheuser-Busch InBev Email Disclaimer www.ab-inbev.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to