source: network-demos/networkconfig.h @ ddd57c9

4.11network-demos-4-10-branchnetwork-demos-4-9-branch
Last change on this file since ddd57c9 was ddd57c9, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 20, 2008 at 10:16:28 PM

2008-08-20 Joel Sherrill <joel.sherrill@…>

  • networkconfig-qemu.h, networkconfig.h: Add missing initializers.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1/*
2 * Network configuration -- LOOPBACK ONLY!!!
3 *
4 * See one of the other networkconfig.h files for an
5 * example of a system that includes a real NIC and
6 * the loopback interface.
7 *
8 ************************************************************
9 * EDIT THIS FILE TO REFLECT YOUR NETWORK CONFIGURATION     *
10 * BEFORE RUNNING ANY RTEMS PROGRAMS WHICH USE THE NETWORK! *
11 ************************************************************
12 *
13 *  $Id$
14 */
15
16#ifndef _RTEMS_NETWORKCONFIG_H_
17#define _RTEMS_NETWORKCONFIG_H_
18
19
20/* #define RTEMS_USE_BOOTP */
21
22#include <bsp.h>
23
24/*
25 * Loopback interface
26 */
27extern int rtems_bsdnet_loopattach();
28
29/*
30 * Default network interface
31 */
32static struct rtems_bsdnet_ifconfig netdriver_config = {
33  "lo0",                    /* name */
34  rtems_bsdnet_loopattach,  /* attach function */
35  NULL,                     /* No more interfaces */
36  "127.0.0.1",              /* IP address */
37  "255.0.0.0",              /* IP net mask */
38  NULL,                     /* Driver supplies hardware address */
39  0,                        /* Use default driver parameters */
40  0,                        /* default efficiency multiplier */
41  0,                        /* default udp TX socket buffer size */
42  0,                        /* default udp RX socket buffer size */
43  0,                        /* default tcp TX socket buffer size */
44  0,                        /* default tcp RX socket buffer size */
45};
46
47/*
48 * Network configuration
49 */
50struct rtems_bsdnet_config rtems_bsdnet_config = {
51  &netdriver_config,
52  NULL,                /* do not use bootp */
53  0,                   /* Default network task priority */
54  0,                   /* Default mbuf capacity */
55  0,                   /* Default mbuf cluster capacity */
56  "rtems",             /* Host name */
57  "nodomain.com",      /* Domain name */
58  "127.0.0.1",         /* Gateway */
59  "127.0.0.1",         /* Log host */
60  {"127.0.0.1" },      /* Name server(s) */
61  {"127.0.0.1" },      /* NTP server(s) */
62  0,                   /* sb_efficiency */
63  0,                   /* udp_tx_buf_size */
64  0,                   /* udp_rx_buf_size */
65  0,                   /* tcp_tx_buf_size */
66  0                    /* tcp_rx_buf_size */
67
68};
69
70/*
71 * For TFTP test application
72 */
73#if (defined (RTEMS_USE_BOOTP))
74#define RTEMS_TFTP_TEST_HOST_NAME "BOOTP_HOST"
75#define RTEMS_TFTP_TEST_FILE_NAME "BOOTP_FILE"
76#else
77#define RTEMS_TFTP_TEST_HOST_NAME "XXX.YYY.ZZZ.XYZ"
78#define RTEMS_TFTP_TEST_FILE_NAME "tftptest"
79#endif
80
81/*
82 * For NFS test application
83 *
84 * NFS server/path to mount and a directory to ls once mounted
85 */
86#define RTEMS_NFS_SERVER      "192.168.1.210"
87#define RTEMS_NFS_SERVER_PATH "/home"
88#define RTEMS_NFS_LS_PATH     "/mnt/nfstest"
89#endif /* _RTEMS_NETWORKCONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.