<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- permission is obtained from the copyright holder. -->
|
<!-- permission is obtained from the copyright holder. -->
|
<HTML
|
<HTML
|
><HEAD
|
><HEAD
|
><TITLE
|
><TITLE
|
>iso_addr</TITLE
|
>iso_addr</TITLE
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
<META
|
<META
|
NAME="GENERATOR"
|
NAME="GENERATOR"
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
"><LINK
|
"><LINK
|
REL="HOME"
|
REL="HOME"
|
TITLE="eCos Reference Manual"
|
TITLE="eCos Reference Manual"
|
HREF="ecos-ref.html"><LINK
|
HREF="ecos-ref.html"><LINK
|
REL="UP"
|
REL="UP"
|
TITLE="TCP/IP Library Reference"
|
TITLE="TCP/IP Library Reference"
|
HREF="tcpip-library-reference.html"><LINK
|
HREF="tcpip-library-reference.html"><LINK
|
REL="PREVIOUS"
|
REL="PREVIOUS"
|
TITLE="ipx"
|
TITLE="ipx"
|
HREF="net-common-tcpip-manpages-ipx.html"><LINK
|
HREF="net-common-tcpip-manpages-ipx.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="link_addr"
|
TITLE="link_addr"
|
HREF="net-common-tcpip-manpages-link-addr.html"></HEAD
|
HREF="net-common-tcpip-manpages-link-addr.html"></HEAD
|
><BODY
|
><BODY
|
CLASS="SECT1"
|
CLASS="SECT1"
|
BGCOLOR="#FFFFFF"
|
BGCOLOR="#FFFFFF"
|
TEXT="#000000"
|
TEXT="#000000"
|
LINK="#0000FF"
|
LINK="#0000FF"
|
VLINK="#840084"
|
VLINK="#840084"
|
ALINK="#0000FF"
|
ALINK="#0000FF"
|
><DIV
|
><DIV
|
CLASS="NAVHEADER"
|
CLASS="NAVHEADER"
|
><TABLE
|
><TABLE
|
SUMMARY="Header navigation table"
|
SUMMARY="Header navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TH
|
><TH
|
COLSPAN="3"
|
COLSPAN="3"
|
ALIGN="center"
|
ALIGN="center"
|
>eCos Reference Manual</TH
|
>eCos Reference Manual</TH
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="net-common-tcpip-manpages-ipx.html"
|
HREF="net-common-tcpip-manpages-ipx.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="80%"
|
WIDTH="80%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
>Chapter 38. TCP/IP Library Reference</TD
|
>Chapter 38. TCP/IP Library Reference</TD
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="net-common-tcpip-manpages-link-addr.html"
|
HREF="net-common-tcpip-manpages-link-addr.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"></DIV
|
WIDTH="100%"></DIV
|
><DIV
|
><DIV
|
CLASS="SECT1"
|
CLASS="SECT1"
|
><H1
|
><H1
|
CLASS="SECT1"
|
CLASS="SECT1"
|
><A
|
><A
|
NAME="NET-COMMON-TCPIP-MANPAGES-ISO-ADDR">iso_addr</H1
|
NAME="NET-COMMON-TCPIP-MANPAGES-ISO-ADDR">iso_addr</H1
|
><TABLE
|
><TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>ISO_ADDR(3) System Library Functions Manual ISO_ADDR(3)
|
>ISO_ADDR(3) System Library Functions Manual ISO_ADDR(3)
|
|
|
NAME
|
NAME
|
iso_addr, iso_ntoa - network address conversion routines for Open System
|
iso_addr, iso_ntoa - network address conversion routines for Open System
|
Interconnection
|
Interconnection
|
|
|
SYNOPSIS
|
SYNOPSIS
|
#include <sys/types.h>
|
#include <sys/types.h>
|
#include <netiso/iso.h>
|
#include <netiso/iso.h>
|
|
|
struct iso_addr *
|
struct iso_addr *
|
iso_addr(char *cp);
|
iso_addr(char *cp);
|
|
|
char *
|
char *
|
iso_ntoa(struct iso_addr *isoa);
|
iso_ntoa(struct iso_addr *isoa);
|
|
|
DESCRIPTION
|
DESCRIPTION
|
The routine iso_addr() interprets character strings representing OSI
|
The routine iso_addr() interprets character strings representing OSI
|
addresses, returning binary information suitable for use in system calls.
|
addresses, returning binary information suitable for use in system calls.
|
The routine iso_ntoa() takes OSI addresses and returns ASCII strings rep-
|
The routine iso_ntoa() takes OSI addresses and returns ASCII strings rep-
|
resenting NSAPs (network service access points) in a notation inverse to
|
resenting NSAPs (network service access points) in a notation inverse to
|
that accepted by iso_addr().
|
that accepted by iso_addr().
|
|
|
Unfortunately, no universal standard exists for representing OSI network
|
Unfortunately, no universal standard exists for representing OSI network
|
addresses.
|
addresses.
|
|
|
The format employed by iso_addr() is a sequence of hexadecimal ``digits''
|
The format employed by iso_addr() is a sequence of hexadecimal ``digits''
|
(optionally separated by periods), of the form:
|
(optionally separated by periods), of the form:
|
|
|
<hex digits>.<hex digits>.<hex digits>
|
<hex digits>.<hex digits>.<hex digits>
|
|
|
Each pair of hexadecimal digits represents a byte with the leading digit
|
Each pair of hexadecimal digits represents a byte with the leading digit
|
indicating the higher-ordered bits. A period following an even number of
|
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
|
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
|
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.
|
address being translated to have its higher order bits filled with zeros.
|
|
|
RETURN VALUES
|
RETURN VALUES
|
iso_ntoa() always returns a null terminated string. iso_addr() always
|
iso_ntoa() always returns a null terminated string. iso_addr() always
|
returns a pointer to a struct iso_addr. (See BUGS.)
|
returns a pointer to a struct iso_addr. (See BUGS.)
|
|
|
SEE ALSO
|
SEE ALSO
|
iso(4)
|
iso(4)
|
|
|
HISTORY
|
HISTORY
|
The iso_addr() and iso_ntoa() functions appeared in 4.3BSD-Reno.
|
The iso_addr() and iso_ntoa() functions appeared in 4.3BSD-Reno.
|
|
|
BUGS
|
BUGS
|
The returned values reside in a static memory area.
|
The returned values reside in a static memory area.
|
|
|
The function iso_addr() should diagnose improperly formed input, and
|
The function iso_addr() should diagnose improperly formed input, and
|
there should be an unambiguous way to recognize this.
|
there should be an unambiguous way to recognize this.
|
|
|
BSD June 4, 1993 BSD
|
BSD June 4, 1993 BSD
|
</PRE
|
</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="NAVFOOTER"
|
CLASS="NAVFOOTER"
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"><TABLE
|
WIDTH="100%"><TABLE
|
SUMMARY="Footer navigation table"
|
SUMMARY="Footer navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="net-common-tcpip-manpages-ipx.html"
|
HREF="net-common-tcpip-manpages-ipx.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="ecos-ref.html"
|
HREF="ecos-ref.html"
|
ACCESSKEY="H"
|
ACCESSKEY="H"
|
>Home</A
|
>Home</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="net-common-tcpip-manpages-link-addr.html"
|
HREF="net-common-tcpip-manpages-link-addr.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
>ipx</TD
|
>ipx</TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="tcpip-library-reference.html"
|
HREF="tcpip-library-reference.html"
|
ACCESSKEY="U"
|
ACCESSKEY="U"
|
>Up</A
|
>Up</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
>link_addr</TD
|
>link_addr</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|