Changeset 2fe49d5 in network-demos


Ignore:
Timestamp:
Aug 8, 1998, 5:51:31 PM (21 years ago)
Author:
cvs2git <rtems-devel@…>
Parents:
c87143a
Message:

This commit was manufactured by cvs2svn to create tag 'netdemos-19980808'.

Sprout from ERIC-NORUM 1998-07-30 14:42:29 UTC Joel Sherrill <joel.sherrill@…> 'base from Eric Norum -- Demos.30May1998.tar.gz'
Cherrypick from master 1998-08-08 17:51:30 UTC Joel Sherrill <joel.sherrill@…> 'Added print.':

DEBUG.hints
DEBUG.linux
netdemo/Makefile
netdemo/README
netdemo/init.c
netdemo/test.c
tftpTest/init.c
ttcp/init.c
usercfg.h

Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • netdemo/Makefile

    rc87143a r2fe49d5  
     1#
     2#  $Id$
     3#
     4
    15SAMPLE=netdemo
    26PGM=${ARCH}/$(SAMPLE).exe
  • netdemo/README

    rc87143a r2fe49d5  
     1#
     2# $Id$
     3#
     4
    15A simple application to test some of the KA9Q networking code.
    26
     
    2630           You can run more than one telnet session at once.
    2731           You can use port number 24743 as well.
     32
  • netdemo/init.c

    rc87143a r2fe49d5  
    1212 * Saskatoon, Saskatchewan, CANADA
    1313 * eric@skatter.usask.ca
     14 *
     15 * $Id$
    1416 */
    1517
    16 /*#define TRACE_NETWORK_DRIVER 1 */
     18/*
     19 *  Include user provided information
     20 */
     21
     22#include "../usercfg.h"
     23
    1724#include <bsp.h>
    1825
     
    4451#include <rtems_ka9q.h>
    4552
    46 /*
    47  * Board ethernet address
    48  * REPLACE THIS WITH YOUR OWN VALUE BEFORE TRYING TO USE THIS PROGRAM!
    49  */
    50 #define MY_ETHERNET_ADDRESS "37:1D:3E:21:2B:A5"
    51 
    52 /*
    53  * Some board support packages let the network driver
    54  * get the Ethernet address from the bootstrap PROM.
    55  */
    56 #define MY_ETHERNET_ADDRESS "prom"
    57 
    58 /*
    59  * Use BOOTP to get information about me?
    60  */
    61 #define USE_BOOTP       1
    6253
    6354#if (defined (USE_BOOTP))
    6455#include <bootp.h>
    65 #else
    66 /*
    67  * Information about me if BOOTP isn't used
    68  * CHOOSE A VALUE APPROPRIATE TO YOUR NETWORK!
    69  */
    70 #define MY_IP_ADDRESS   "128.233.14.68"
    7156#endif
    7257
     
    8974Init (rtems_task_argument ignored)
    9075{
    91         printf( "\n\n*** HELLO WORLD TEST ***\n" );
    92         printf( "Hello World\n" );
    93         printf( "*** END OF HELLO WORLD TEST ***\n" );
     76        printf( "\n\n*** ETHERNET DEMO TEST ***\n" );
    9477
    9578        /*
    9679         * Start KA9Q
    9780         */
     81        puts( "Starting KA9Q" );
    9882        rtems_ka9q_start (50);
    9983
     
    10185         * Hook up drivers
    10286         */
     87        puts( "Attaching to the network" );
    10388#if (defined (USE_BOOTP))
    10489        if (rtems_ka9q_execute_command ("attach rtems broadcast y"
     
    115100         * Turn on debugging
    116101         */
     102        puts( "Enabling debug mode of KA9Q" );
    117103        if (rtems_ka9q_execute_command ("trace rtems input <stdout>")
    118104         || rtems_ka9q_execute_command ("trace rtems output <stdout>")
  • netdemo/test.c

    rc87143a r2fe49d5  
    1212 * Saskatoon, Saskatchewan, CANADA
    1313 * eric@skatter.usask.ca
    14  */
     14 *
     15 * $Id$
     16 */
     17
    1518#include <stdio.h>
    1619#include <unistd.h>
     
    155158        rtems_status_code sc;
    156159
     160  printf( "echoTask on %d\n", fd );
    157161        for (;;) {
    158162#if 0
  • tftpTest/init.c

    rc87143a r2fe49d5  
    1313 * eric@skatter.usask.ca
    1414 */
     15
     16#include "../usercfg.h"
    1517
    1618#include <bsp.h>
     
    4042
    4143#include <confdefs.h>
    42 
    43 /*
    44  * Board ethernet address
    45  * REPLACE THIS WITH YOUR OWN VALUE BEFORE TRYING TO USE THIS PROGRAM!
    46  */
    47 #define MY_ETHERNET_ADDRESS "48:3E:3E:21:2E:D5"
    48 #define MY_ETHERNET_ADDRESS "prom"
    4944
    5045#include <bootp.h>
  • ttcp/init.c

    rc87143a r2fe49d5  
    1313 * eric@skatter.usask.ca
    1414 */
     15
     16#include "../usercfg.h"
    1517
    1618/*#define TRACE_SCC1 1 */
     
    3638#include <rtems_ka9q.h>
    3739
    38 /*
    39  * Board ethernet address
    40  * REPLACE THIS WITH YOUR OWN VALUE BEFORE TRYING TO USE THIS PROGRAM!
    41  */
    42 #define MY_ETHERNET_ADDRESS "3B:1D:3E:21:E2:D5"
    43 #define MY_ETHERNET_ADDRESS "prom"
    44 
    45 /*
    46  * Use BOOTP to get information about me?
    47  */
    48 #define USE_BOOTP       1
    49 
    5040#if (defined (USE_BOOTP))
    5141#include <bootp.h>
    52 #else
    53 /*
    54  * Information about me if BOOTP isn't used
    55  * CHOOSE A VALUE APPROPRIATE TO YOUR NETWORK!
    56  */
    57 #define MY_IP_ADDRESS   "128.233.14.68"
    5842#endif
    5943
Note: See TracChangeset for help on using the changeset viewer.