Changeset 7c81a8b in network-demos


Ignore:
Timestamp:
Aug 12, 1998, 11:06:16 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master, netdemos-4-5-branch, network-demos-4-10-branch, network-demos-4-6-branch, network-demos-4-7-branch, network-demos-4-8-branch, network-demos-4-9-branch, rtems-4-5-branch
Children:
19a33c6
Parents:
cf04c14
Message:

Cleaned up USE_BOOTP conditional for initialization.

Get info from usercfg.h now.

Added message indicating test is exitting.

Location:
netdemo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • netdemo/init.c

    rcf04c14 r7c81a8b  
    8686         */
    8787        puts( "Attaching to the network" );
    88 #if (defined (USE_BOOTP))
    8988        if (rtems_ka9q_execute_command ("attach rtems broadcast y"
     89#if !(defined (USE_BOOTP))
     90                                        " ip " MY_IP_ADDRESS
     91#endif
    9092                                        " ether " MY_ETHERNET_ADDRESS))
    91 #else
    92         if (rtems_ka9q_execute_command ("attach rtems broadcast y"
    93                                         " ip " MY_IP_ADDRESS
    94                                         " ether " MY_ETHERNET_ADDRESS))
    95 #endif
    9693                rtems_panic ("Can't attach Ethernet driver.\n");
    9794
  • netdemo/test.c

    rcf04c14 r7c81a8b  
    2525#include <rtems_ka9q.h>
    2626
    27 #define NSERVER         2
    28 #define BASE_PORT       24742
    29 
    30 #define DATA_SINK_HOST  "128.233.14.1"
     27#include "../usercfg.h"
    3128
    3229/*
     
    291288                switch (getchar ()) {
    292289                case '\004':
     290                        printf( "Exiting test\n" );
    293291                        return;
    294292
Note: See TracChangeset for help on using the changeset viewer.