1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="TCP/IP Library Reference"
23 HREF="tcpip-library-reference.html"><LINK
26 HREF="net-common-tcpip-manpages-ipx.html"><LINK
29 HREF="net-common-tcpip-manpages-link-addr.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="net-common-tcpip-manpages-ipx.html"
65 >Chapter 38. TCP/IP Library Reference</TD
71 HREF="net-common-tcpip-manpages-link-addr.html"
85 NAME="NET-COMMON-TCPIP-MANPAGES-ISO-ADDR">iso_addr</H1
94 >ISO_ADDR(3) System Library Functions Manual ISO_ADDR(3)
97 iso_addr, iso_ntoa - network address conversion routines for Open System
101 #include <sys/types.h>
102 #include <netiso/iso.h>
108 iso_ntoa(struct iso_addr *isoa);
111 The routine iso_addr() interprets character strings representing OSI
112 addresses, returning binary information suitable for use in system calls.
113 The routine iso_ntoa() takes OSI addresses and returns ASCII strings rep-
114 resenting NSAPs (network service access points) in a notation inverse to
115 that accepted by iso_addr().
117 Unfortunately, no universal standard exists for representing OSI network
120 The format employed by iso_addr() is a sequence of hexadecimal ``digits''
121 (optionally separated by periods), of the form:
123 <hex digits>.<hex digits>.<hex digits>
125 Each pair of hexadecimal digits represents a byte with the leading digit
126 indicating the higher-ordered bits. A period following an even number of
127 bytes has no effect (but may be used to increase legibility). A period
128 following an odd number of bytes has the effect of causing the byte of
129 address being translated to have its higher order bits filled with zeros.
132 iso_ntoa() always returns a null terminated string. iso_addr() always
133 returns a pointer to a struct iso_addr. (See BUGS.)
139 The iso_addr() and iso_ntoa() functions appeared in 4.3BSD-Reno.
142 The returned values reside in a static memory area.
144 The function iso_addr() should diagnose improperly formed input, and
145 there should be an unambiguous way to recognize this.
158 SUMMARY="Footer navigation table"
169 HREF="net-common-tcpip-manpages-ipx.html"
187 HREF="net-common-tcpip-manpages-link-addr.html"
203 HREF="tcpip-library-reference.html"