Isoaddr, Iso_addr – Comtrol eCos User Manual

Page 547

Advertising
background image

Chapter 38. TCP/IP Library Reference

order bytes.

Next, the field is inspected for hyphens, in which case the

field is assumed to be a number in decimal notation with hyphens separat-

ing the millenia.

Next, the field is assumed to be a number: It is

interpreted as hexadecimal if there is a leading ‘0x’ (as in C), a trail-

ing ‘H’ (as in Mesa), or there are any super-decimal digits present.

It

is interpreted as octal is there is a leading ‘0’ and there are no super-

octal digits.

Otherwise, it is converted as a decimal number.

RETURN VALUES

None.

(See BUGS.)

SEE ALSO

ns(4), hosts(5), networks(5)

HISTORY

The precursor ns_addr() and ns_ntoa() functions appeared in 4.3BSD.

BUGS

The string returned by ipx_ntoa() resides in a static memory area.

The

function ipx_addr() should diagnose improperly formed input, and there

should be an unambiguous way to recognize this.

BSD

June 4, 1993

BSD

iso_addr

ISO_ADDR(3)

System Library Functions Manual

ISO_ADDR(3)

NAME

iso_addr, iso_ntoa - network address conversion routines for Open System

Interconnection

SYNOPSIS

#include

<

sys/types.h>

#include

<

netiso/iso.h>

struct iso_addr *

iso_addr(char *cp);

char *

iso_ntoa(struct iso_addr *isoa);

DESCRIPTION

The routine iso_addr() interprets character strings representing OSI

addresses, returning binary information suitable for use in system calls.

The routine iso_ntoa() takes OSI addresses and returns ASCII strings rep-

resenting NSAPs (network service access points) in a notation inverse to

that accepted by iso_addr().

Unfortunately, no universal standard exists for representing OSI network

addresses.

443

Advertising