*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> iso_addr (3)              
Title
Content
Arch
Section
 

ISO_ADDR(3)

Contents


NAME    [Toc]    [Back]

     iso_addr, iso_ntoa - elementary network address conversion routines for
     Open System Interconnection

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <netiso/iso.h>

     struct iso_addr *
     iso_addr(const char *cp);

     char *
     iso_ntoa(struct iso_addr *isoa);

DESCRIPTION    [Toc]    [Back]

     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 representing
 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.

     The format employed by iso_addr() is a sequence of hexadecimal ``digits''
     (optionally separated by periods), of the form:

           <hex digits>.<hex digits>.<hex digits>

     Each pair of hexadecimal digits represents a byte with the leading digit
     indicating the higher-ordered bits.  A period following an even number of
     bytes has no effect (but may be used to increase legibility).  A period
     following an odd number of bytes has the effect of causing the byte of
     address being translated to have its higher order bits filled with zeros.

RETURN VALUES    [Toc]    [Back]

     iso_ntoa() always returns a null terminated string.  iso_addr() always
     returns a pointer to a struct iso_addr.  (See BUGS.)

SEE ALSO    [Toc]    [Back]

      
      
     iso(4)

HISTORY    [Toc]    [Back]

     The iso_addr() and iso_ntoa() functions appeared in 4.3BSD-Reno.

BUGS    [Toc]    [Back]

     The returned values reside in a static memory area.

     The function iso_addr() should diagnose improperly formed input, and
     there should be an unambiguous way to recognize this.

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
link_ntoa FreeBSD elementary address specification routines for link level access
link_ntoa NetBSD elementary address specification routines for link level access
linkntoa NetBSD elementary address specification routines for link level access
linkaddr FreeBSD elementary address specification routines for link level access
link_addr FreeBSD elementary address specification routines for link level access
link_ntoa OpenBSD elementary address specification routines for link level access
linkaddr NetBSD elementary address specification routines for link level access
link_addr NetBSD elementary address specification routines for link level access
link_addr IRIX elementary address specification routines for link level access
link_addr OpenBSD elementary address specification routines for link level access
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service