source: network-demos/networkconfig.h @ d681bc2

4.11netdemos-4-5-branchnetwork-demos-4-10-branchnetwork-demos-4-6-branchnetwork-demos-4-7-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branchrtems-4-5-branch
Last change on this file since d681bc2 was 16a968e, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 10, 1999 at 7:54:56 PM

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

  • Property mode set to 100644
File size: 2.7 KB
Line 
1/*
2 * Network configuration
3 *
4 ************************************************************
5 * EDIT THIS FILE TO REFLECT YOUR NETWORK CONFIGURATION     *
6 * BEFORE RUNNING ANY RTEMS PROGRAMS WHICH USE THE NETWORK! *
7 ************************************************************
8 *
9 *  $Id$
10 */
11
12#ifndef _RTEMS_NETWORKCONFIG_H_
13#define _RTEMS_NETWORKCONFIG_H_
14
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 */
26
27#include <bsp.h>
28
29/*
30 * Define RTEMS_SET_ETHERNET_ADDRESS if you want to specify the
31 * Ethernet address here.  If RTEMS_SET_ETHERNET_ADDRESS is not
32 * defined the driver will choose an address.
33 */
34#define RTEMS_SET_ETHERNET_ADDRESS
35#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
36/* static char ethernet_address[6] = { 0x08, 0x00, 0x3e, 0x12, 0x28, 0xb1 }; */
37static char ethernet_address[6] = { 0x00, 0x80, 0x7F, 0x22, 0x61, 0x77 };
38
39#endif
40
41/*
42 * Default network interface
43 */
44static struct rtems_bsdnet_ifconfig netdriver_config = {
45        RTEMS_BSP_NETWORK_DRIVER_NAME,          /* name */
46        RTEMS_BSP_NETWORK_DRIVER_ATTACH,        /* attach function */
47
48        NULL,                           /* link to next interface */
49
50#if (defined (RTEMS_USE_BOOTP))
51        NULL,                           /* BOOTP supplies IP address */
52        NULL,                           /* BOOTP supplies IP net mask */
53#else
54        "192.168.1.100",                /* IP address */
55        "255.255.255.0",                /* IP net mask */
56#endif /* !RTEMS_USE_BOOTP */
57
58#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
59        ethernet_address,               /* Ethernet hardware address */
60#else
61        NULL,                           /* Driver supplies hardware address */
62#endif
63        0                               /* Use default driver parameters */
64};
65
66/*
67 * Network configuration
68 */
69struct rtems_bsdnet_config rtems_bsdnet_config = {
70        &netdriver_config,
71
72#if (defined (RTEMS_USE_BOOTP))
73        rtems_bsdnet_do_bootp,
74#else
75        NULL,
76#endif
77
78        0,                      /* Default network task priority */
79        0,                      /* Default mbuf capacity */
80        0,                      /* Default mbuf cluster capacity */
81
82#if (!defined (RTEMS_USE_BOOTP))
83#if 0
84        "rgamon",               /* Host name */
85        "usask.ca",             /* Domain name */
86        "128.233.14.100",       /* Gateway */
87        "128.233.14.1",         /* Log host */
88        {"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) */
95#endif /* !RTEMS_USE_BOOTP */
96
97};
98
99/*
100 * For TFTP test application
101 */
102#if (!defined (RTEMS_USE_BOOTP))
103#define RTEMS_TFTP_TEST_HOST_NAME "192.168.1.2"
104#define RTEMS_TFTP_TEST_FILE_NAME "tftptest"
105#endif
106
107#endif /* _RTEMS_NETWORKCONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.