source: network-demos/networkconfig.h @ bca36a0

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 bca36a0 was 83c159d, checked in by Joel Sherrill <joel.sherrill@…>, on 04/07/99 at 21:33:21

Changed to bogus information.

  • Property mode set to 100644
File size: 2.8 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        "XXX.YYY.ZZZ.XYZ",              /* 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        "rtems_host",           /* Host name */
84        "nodomain.com",         /* Domain name */
85        "XXX.YYY.ZZZ.1",        /* Gateway */
86        "XXX.YYY.ZZZ.1",        /* Log host */
87        {"XXX.YYY.ZZZ.1" },     /* Name server(s) */
88
89        /*
90         *  A real example -- DO NOT USE THIS YOURSELF!!!
91         */
92
93#if 0
94        "dy4",                  /* Host name */
95        "NOT_oarcorp.com",      /* Domain name */
96        "192.168.1.2",          /* Gateway */
97        "192.168.1.2",          /* Log host */
98        {"192.168.1.2" },       /* Name server(s) */
99#endif
100#endif /* !RTEMS_USE_BOOTP */
101
102};
103
104/*
105 * For TFTP test application
106 */
107#if (!defined (RTEMS_USE_BOOTP))
108#define RTEMS_TFTP_TEST_HOST_NAME "XXX.YYY.ZZZ.XYZ"
109#define RTEMS_TFTP_TEST_FILE_NAME "tftptest"
110#endif
111
112#endif /* _RTEMS_NETWORKCONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.