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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [net-common-building-the-network-tests.html] - Diff between revs 28 and 174

Go to most recent revision | 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
>Building the Network Tests</TITLE
>Building the Network Tests</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="Tests and Demonstrations"
TITLE="Tests and Demonstrations"
HREF="net-common-tests-and-demonstrations.html"><LINK
HREF="net-common-tests-and-demonstrations.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="Tests and Demonstrations"
TITLE="Tests and Demonstrations"
HREF="net-common-tests-and-demonstrations.html"><LINK
HREF="net-common-tests-and-demonstrations.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="Standalone Tests"
TITLE="Standalone Tests"
HREF="net-common-standalone-tests.html"></HEAD
HREF="net-common-standalone-tests.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-tests-and-demonstrations.html"
HREF="net-common-tests-and-demonstrations.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 36. Tests and Demonstrations</TD
>Chapter 36. Tests and Demonstrations</TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="net-common-standalone-tests.html"
HREF="net-common-standalone-tests.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-BUILDING-THE-NETWORK-TESTS">Building the Network Tests</H1
NAME="NET-COMMON-BUILDING-THE-NETWORK-TESTS">Building the Network Tests</H1
><P
><P
>To build further network tests, ensure that the configuration
>To build further network tests, ensure that the configuration
option CYGPKG_NET_BUILD_TESTS is set in your build
option CYGPKG_NET_BUILD_TESTS is set in your build
and then make the tests in the usual way.  Alternatively
and then make the tests in the usual way.  Alternatively
(with that option set) use
(with that option set) use
<TABLE
<TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>make -C net/common/<TT
>make -C net/common/<TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>VERSION</I
>VERSION</I
></TT
></TT
>/ tests </PRE
>/ tests </PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
>
>
after building the eCos library, if you wish to build
after building the eCos library, if you wish to build
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>only</I
>only</I
></SPAN
></SPAN
>
>
the network tests.</P
the network tests.</P
><P
><P
>This should give test executables in
>This should give test executables in
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>install/tests/net/common/<TT
>install/tests/net/common/<TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>VERSION</I
>VERSION</I
></TT
></TT
>/tests</TT
>/tests</TT
>
>
including
including
the following:</P
the following:</P
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
><SPAN
><SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>socket_test</I
>socket_test</I
></SPAN
></SPAN
> - trivial test of socket creation API
> - trivial test of socket creation API
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>mbuf_test</I
>mbuf_test</I
></SPAN
></SPAN
> - trivial test of mbuf allocation API
> - trivial test of mbuf allocation API
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>ftp_test</I
>ftp_test</I
></SPAN
></SPAN
> - simple FTP test, connects to &#8220;server&#8221;
> - simple FTP test, connects to &#8220;server&#8221;
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>ping_test</I
>ping_test</I
></SPAN
></SPAN
> - pings &#8220;server&#8221; and non-existent host to test timeout
> - pings &#8220;server&#8221; and non-existent host to test timeout
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>dhcp_test</I
>dhcp_test</I
></SPAN
></SPAN
> - ping test, but also relinquishes and
> - ping test, but also relinquishes and
            reacquires DHCP leases periodically
            reacquires DHCP leases periodically
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>flood</I
>flood</I
></SPAN
></SPAN
> - a flood ping test; use with care
> - a flood ping test; use with care
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>tcp_echo</I
>tcp_echo</I
></SPAN
></SPAN
> - data forwarding program for performance test
> - data forwarding program for performance test
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>nc_test_master </I
>nc_test_master </I
></SPAN
></SPAN
>- network characterization master
>- network characterization master
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>nc_test_slave </I
>nc_test_slave </I
></SPAN
></SPAN
>- network characterization slave
>- network characterization slave
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>server_test</I
>server_test</I
></SPAN
></SPAN
> - a very simple server example
> - a very simple server example
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>tftp_client_test</I
>tftp_client_test</I
></SPAN
></SPAN
> - performs a tftp get and put from/to &#8220;server&#8221;
> - performs a tftp get and put from/to &#8220;server&#8221;
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>tftp_server_test</I
>tftp_server_test</I
></SPAN
></SPAN
> - runs a tftp server for a short while
> - runs a tftp server for a short while
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>set_mac_address </I
>set_mac_address </I
></SPAN
></SPAN
>- set MAC address(es) of interfaces in NVRAM
>- set MAC address(es) of interfaces in NVRAM
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>bridge</I
>bridge</I
></SPAN
></SPAN
> - contributed network bridge code
> - contributed network bridge code
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>nc6_test_master </I
>nc6_test_master </I
></SPAN
></SPAN
>- IPv4/IPv6 network characterization master
>- IPv4/IPv6 network characterization master
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>nc6_test_slave </I
>nc6_test_slave </I
></SPAN
></SPAN
>- IPv4/IPv6 network characterization slave
>- IPv4/IPv6 network characterization slave
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>ga_server_test</I
>ga_server_test</I
></SPAN
></SPAN
> - a very simple IPv4/IPv6 server example</PRE
> - a very simple IPv4/IPv6 server example</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-tests-and-demonstrations.html"
HREF="net-common-tests-and-demonstrations.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-standalone-tests.html"
HREF="net-common-standalone-tests.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"
>Tests and Demonstrations</TD
>Tests and Demonstrations</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="net-common-tests-and-demonstrations.html"
HREF="net-common-tests-and-demonstrations.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"
>Standalone Tests</TD
>Standalone Tests</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.