Changeset 16a968e in network-demos


Ignore:
Timestamp:
Feb 10, 1999, 7:54:56 PM (20 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:
389195e
Parents:
43df10f
Message:

Modified so warnings would be printed if no network driver was defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • networkconfig.h

    r43df10f r16a968e  
    1313#define _RTEMS_NETWORKCONFIG_H_
    1414
    15 #define RTEMS_USE_BOOTP
     15#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
     16#warning "RTEMS_BSP_NETWORK_DRIVER_NAME is not defined"
     17#define RTEMS_BSP_NETWORK_DRIVER_NAME "no_network1"
     18#endif
     19
     20#ifndef RTEMS_BSP_NETWORK_DRIVER_ATTACH
     21#warning "RTEMS_BSP_NETWORK_DRIVER_ATTACH is not defined"
     22#define RTEMS_BSP_NETWORK_DRIVER_ATTACH 0
     23#endif
     24
     25/* #define RTEMS_USE_BOOTP */
    1626
    1727#include <bsp.h>
     
    2232 * defined the driver will choose an address.
    2333 */
    24 /* #define RTEMS_SET_ETHERNET_ADDRESS */
     34#define RTEMS_SET_ETHERNET_ADDRESS
    2535#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
    26 static char ethernet_address[6] = { 0x08, 0x00, 0x3e, 0x12, 0x28, 0xb1 };
     36/* static char ethernet_address[6] = { 0x08, 0x00, 0x3e, 0x12, 0x28, 0xb1 }; */
     37static char ethernet_address[6] = { 0x00, 0x80, 0x7F, 0x22, 0x61, 0x77 };
     38
    2739#endif
    2840
     
    4052        NULL,                           /* BOOTP supplies IP net mask */
    4153#else
    42         "128.233.14.91",                /* IP address */
     54        "192.168.1.100",                /* IP address */
    4355        "255.255.255.0",                /* IP net mask */
    4456#endif /* !RTEMS_USE_BOOTP */
     
    6981
    7082#if (!defined (RTEMS_USE_BOOTP))
     83#if 0
    7184        "rgamon",               /* Host name */
    7285        "usask.ca",             /* Domain name */
     
    7487        "128.233.14.1",         /* Log host */
    7588        {"128.233.14.1" },      /* Name server(s) */
     89#endif
     90        "dy4",                  /* Host name */
     91        "oarcorp.com",          /* Domain name */
     92        "192.168.1.2",          /* Gateway */
     93        "192.168.1.2",          /* Log host */
     94        {"192.168.1.2" },       /* Name server(s) */
    7695#endif /* !RTEMS_USE_BOOTP */
    7796
     
    82101 */
    83102#if (!defined (RTEMS_USE_BOOTP))
    84 #define RTEMS_TFTP_TEST_HOST_NAME "128.233.14.1"
    85 #define RTEMS_TFTP_TEST_FILE_NAME "bootfiles/m68360/RGAmonitor"
     103#define RTEMS_TFTP_TEST_HOST_NAME "192.168.1.2"
     104#define RTEMS_TFTP_TEST_FILE_NAME "tftptest"
    86105#endif
    87106
Note: See TracChangeset for help on using the changeset viewer.