<!-- 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
|
>ipx</TITLE
|
>ipx</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="inet_net"
|
TITLE="inet_net"
|
HREF="net-common-tcpip-manpages-inet-net.html"><LINK
|
HREF="net-common-tcpip-manpages-inet-net.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="iso_addr"
|
TITLE="iso_addr"
|
HREF="net-common-tcpip-manpages-iso-addr.html"></HEAD
|
HREF="net-common-tcpip-manpages-iso-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-inet-net.html"
|
HREF="net-common-tcpip-manpages-inet-net.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-iso-addr.html"
|
HREF="net-common-tcpip-manpages-iso-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-IPX">ipx</H1
|
NAME="NET-COMMON-TCPIP-MANPAGES-IPX">ipx</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"
|
>IPX(3) System Library Functions Manual IPX(3)
|
>IPX(3) System Library Functions Manual IPX(3)
|
|
|
NAME
|
NAME
|
ipx_addr, ipx_ntoa - IPX address conversion routines
|
ipx_addr, ipx_ntoa - IPX address conversion routines
|
|
|
SYNOPSIS
|
SYNOPSIS
|
#include <sys/types.h>
|
#include <sys/types.h>
|
#include <netipx/ipx.h>
|
#include <netipx/ipx.h>
|
|
|
struct ipx_addr
|
struct ipx_addr
|
ipx_addr(const char *cp);
|
ipx_addr(const char *cp);
|
|
|
char *
|
char *
|
ipx_ntoa(struct ipx_addr ipx);
|
ipx_ntoa(struct ipx_addr ipx);
|
|
|
DESCRIPTION
|
DESCRIPTION
|
The routine ipx_addr() interprets character strings representing IPX
|
The routine ipx_addr() interprets character strings representing IPX
|
addresses, returning binary information suitable for use in system calls.
|
addresses, returning binary information suitable for use in system calls.
|
The routine ipx_ntoa() takes IPX addresses and returns ASCII strings rep-
|
The routine ipx_ntoa() takes IPX addresses and returns ASCII strings rep-
|
resenting the address in a notation in common use:
|
resenting the address in a notation in common use:
|
|
|
<network number>.<host number>.<port number>
|
<network number>.<host number>.<port number>
|
|
|
Trailing zero fields are suppressed, and each number is printed in hex-
|
Trailing zero fields are suppressed, and each number is printed in hex-
|
adecimal, in a format suitable for input to ipx_addr(). Any fields lack-
|
adecimal, in a format suitable for input to ipx_addr(). Any fields lack-
|
ing super-decimal digits will have a trailing `H' appended.
|
ing super-decimal digits will have a trailing `H' appended.
|
|
|
An effort has been made to ensure that ipx_addr() be compatible with most
|
An effort has been made to ensure that ipx_addr() be compatible with most
|
formats in common use. It will first separate an address into 1 to 3
|
formats in common use. It will first separate an address into 1 to 3
|
fields using a single delimiter chosen from period (`.'), colon (`:'), or
|
fields using a single delimiter chosen from period (`.'), colon (`:'), or
|
pound-sign (`#'). Each field is then examined for byte separators (colon
|
pound-sign (`#'). Each field is then examined for byte separators (colon
|
or period). If there are byte separators, each subfield separated is
|
or period). If there are byte separators, each subfield separated is
|
taken to be a small hexadecimal number, and the entirety is taken as a
|
taken to be a small hexadecimal number, and the entirety is taken as a
|
network-byte-ordered quantity to be zero extended in the high-network-
|
network-byte-ordered quantity to be zero extended in the high-network-
|
order bytes. Next, the field is inspected for hyphens, in which case the
|
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-
|
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
|
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-
|
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
|
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-
|
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.
|
octal digits. Otherwise, it is converted as a decimal number.
|
|
|
RETURN VALUES
|
RETURN VALUES
|
None. (See BUGS.)
|
None. (See BUGS.)
|
|
|
SEE ALSO
|
SEE ALSO
|
ns(4), hosts(5), networks(5)
|
ns(4), hosts(5), networks(5)
|
|
|
HISTORY
|
HISTORY
|
The precursor ns_addr() and ns_ntoa() functions appeared in 4.3BSD.
|
The precursor ns_addr() and ns_ntoa() functions appeared in 4.3BSD.
|
|
|
BUGS
|
BUGS
|
The string returned by ipx_ntoa() resides in a static memory area. The
|
The string returned by ipx_ntoa() resides in a static memory area. The
|
function ipx_addr() should diagnose improperly formed input, and there
|
function ipx_addr() should diagnose improperly formed input, and there
|
should be an unambiguous way to recognize this.
|
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-inet-net.html"
|
HREF="net-common-tcpip-manpages-inet-net.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-iso-addr.html"
|
HREF="net-common-tcpip-manpages-iso-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"
|
>inet_net</TD
|
>inet_net</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"
|
>iso_addr</TD
|
>iso_addr</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|