OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [net-common-tcpip-manpages-ethers.html] - Diff between revs 28 and 174

Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- 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
>ethers</TITLE
>ethers</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="byteorder"
TITLE="byteorder"
HREF="net-common-tcpip-manpages-byteorder.html"><LINK
HREF="net-common-tcpip-manpages-byteorder.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="getaddrinfo"
TITLE="getaddrinfo"
HREF="net-common-tcpip-manpages-getaddrinfo.html"></HEAD
HREF="net-common-tcpip-manpages-getaddrinfo.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-byteorder.html"
HREF="net-common-tcpip-manpages-byteorder.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-getaddrinfo.html"
HREF="net-common-tcpip-manpages-getaddrinfo.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-ETHERS">ethers</H1
NAME="NET-COMMON-TCPIP-MANPAGES-ETHERS">ethers</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"
>ETHERS(3)               System Library Functions Manual              ETHERS(3)
>ETHERS(3)               System Library Functions Manual              ETHERS(3)
 
 
NAME
NAME
     ether_aton, ether_ntoa, ether_addr, ether_ntohost, ether_hostton,
     ether_aton, ether_ntoa, ether_addr, ether_ntohost, ether_hostton,
     ether_line - get ethers entry
     ether_line - get ethers entry
 
 
SYNOPSIS
SYNOPSIS
     #include &lt;netinet/if_ether.h&#62;
     #include &lt;netinet/if_ether.h&#62;
 
 
     char *
     char *
     ether_ntoa(struct ether_addr *e);
     ether_ntoa(struct ether_addr *e);
 
 
     struct ether_addr *
     struct ether_addr *
     ether_aton(char *s);
     ether_aton(char *s);
 
 
     int
     int
     ether_ntohost(char *hostname, struct ether_addr *e);
     ether_ntohost(char *hostname, struct ether_addr *e);
 
 
     int
     int
     ether_hostton(char *hostname, struct ether_addr *e);
     ether_hostton(char *hostname, struct ether_addr *e);
 
 
     int
     int
     ether_line(char *l, struct ether_addr *e, char *hostname);
     ether_line(char *l, struct ether_addr *e, char *hostname);
 
 
DESCRIPTION
DESCRIPTION
     Ethernet addresses are represented by the following structure:
     Ethernet addresses are represented by the following structure:
 
 
           struct ether_addr {
           struct ether_addr {
                   u_int8_t  ether_addr_octet[6];
                   u_int8_t  ether_addr_octet[6];
           };
           };
 
 
     The ether_ntoa() function converts this structure into an ASCII string of
     The ether_ntoa() function converts this structure into an ASCII string of
     the form ``xx:xx:xx:xx:xx:xx'', consisting of 6 hexadecimal numbers sepa-
     the form ``xx:xx:xx:xx:xx:xx'', consisting of 6 hexadecimal numbers sepa-
     rated by colons.  It returns a pointer to a static buffer that is reused
     rated by colons.  It returns a pointer to a static buffer that is reused
     for each call.  The ether_aton() converts an ASCII string of the same
     for each call.  The ether_aton() converts an ASCII string of the same
     form and to a structure containing the 6 octets of the address.  It
     form and to a structure containing the 6 octets of the address.  It
     returns a pointer to a static structure that is reused for each call.
     returns a pointer to a static structure that is reused for each call.
 
 
     The ether_ntohost() and ether_hostton() functions interrogate the
     The ether_ntohost() and ether_hostton() functions interrogate the
     database mapping host names to Ethernet addresses, /etc/ethers.  The
     database mapping host names to Ethernet addresses, /etc/ethers.  The
     ether_ntohost() function looks up the given Ethernet address and writes
     ether_ntohost() function looks up the given Ethernet address and writes
     the associated host name into the character buffer passed.  This buffer
     the associated host name into the character buffer passed.  This buffer
     should be MAXHOSTNAMELEN characters in size.  The ether_hostton() func-
     should be MAXHOSTNAMELEN characters in size.  The ether_hostton() func-
     tion looks up the given host name and writes the associated Ethernet
     tion looks up the given host name and writes the associated Ethernet
     address into the structure passed.  Both functions return zero if they
     address into the structure passed.  Both functions return zero if they
     find the requested host name or address, and -1 if not.
     find the requested host name or address, and -1 if not.
 
 
     Each call reads /etc/ethers from the beginning; if a `+' appears alone on
     Each call reads /etc/ethers from the beginning; if a `+' appears alone on
     a line in the file, then ether_hostton() will consult the ethers.byname
     a line in the file, then ether_hostton() will consult the ethers.byname
     YP map, and ether_ntohost() will consult the ethers.byaddr YP map.
     YP map, and ether_ntohost() will consult the ethers.byaddr YP map.
 
 
     The ether_line() function parses a line from the /etc/ethers file and
     The ether_line() function parses a line from the /etc/ethers file and
     fills in the passed struct ether_addr and character buffer with the Eth-
     fills in the passed struct ether_addr and character buffer with the Eth-
     ernet address and host name on the line.  It returns zero if the line was
     ernet address and host name on the line.  It returns zero if the line was
     successfully parsed and -1 if not.  The character buffer should be
     successfully parsed and -1 if not.  The character buffer should be
     MAXHOSTNAMELEN characters in size.
     MAXHOSTNAMELEN characters in size.
 
 
FILES
FILES
     /etc/ethers
     /etc/ethers
 
 
SEE ALSO
SEE ALSO
     ethers(5)
     ethers(5)
 
 
HISTORY
HISTORY
     The ether_ntoa(), ether_aton(), ether_ntohost(), ether_hostton(), and
     The ether_ntoa(), ether_aton(), ether_ntohost(), ether_hostton(), and
     ether_line() functions were adopted from SunOS and appeared in NetBSD 0.9
     ether_line() functions were adopted from SunOS and appeared in NetBSD 0.9
     b.
     b.
 
 
BUGS
BUGS
     The data space used by these functions is static; if future use requires
     The data space used by these functions is static; if future use requires
     the data, it should be copied before any subsequent calls to these func-
     the data, it should be copied before any subsequent calls to these func-
     tions overwrite it.
     tions overwrite it.
 
 
BSD                            December 16, 1993                           BSD
BSD                            December 16, 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-byteorder.html"
HREF="net-common-tcpip-manpages-byteorder.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-getaddrinfo.html"
HREF="net-common-tcpip-manpages-getaddrinfo.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"
>byteorder</TD
>byteorder</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"
>getaddrinfo</TD
>getaddrinfo</TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.