source: ada-examples/networkconfig.h @ 3fe7728

ada-examples-4-10-branch ada-examples-4-10-1
Last change on this file since 3fe7728 was eb04e53, checked in by Joel Sherrill <joel.sherrill@…>, on 09/27/07 at 14:43:05

2007-09-27 Joel Sherrill <joel.sherrill@…>

  • ChangeLog?: New tests. Clean up. Rework so all tests use the same shared Makefile for the hard logic of producing an executable.
  • Makefile, Makefile.shared, README.Makefiles, networkconfig.h, rtems_init.c: New files.
  • Property mode set to 100644
File size: 2.1 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};
41
42/*
43 * Network configuration
44 */
45struct rtems_bsdnet_config rtems_bsdnet_config = {
46  &netdriver_config,
47  NULL,                /* do not use bootp */
48  0,                   /* Default network task priority */
49  0,                   /* Default mbuf capacity */
50  0,                   /* Default mbuf cluster capacity */
51  "localhost",         /* Host name -- match expectations for 127.0.0.1 */
52  "nodomain.com",      /* Domain name */
53  "127.0.0.1",         /* Gateway */
54  "127.0.0.1",         /* Log host */
55  {"127.0.0.1"  },     /* Name server(s) */
56};
57
58/*
59 * For TFTP test application
60 */
61#if (defined (RTEMS_USE_BOOTP))
62#define RTEMS_TFTP_TEST_HOST_NAME "BOOTP_HOST"
63#define RTEMS_TFTP_TEST_FILE_NAME "BOOTP_FILE"
64#else
65#define RTEMS_TFTP_TEST_HOST_NAME "XXX.YYY.ZZZ.XYZ"
66#define RTEMS_TFTP_TEST_FILE_NAME "tftptest"
67#endif
68
69/*
70 * For NFS test application
71 *
72 * NFS server/path to mount and a directory to ls once mounted
73 */
74#define RTEMS_NFS_SERVER      "192.168.1.210"
75#define RTEMS_NFS_SERVER_PATH "/home"
76#define RTEMS_NFS_LS_PATH     "/mnt/nfstest"
77#endif /* _RTEMS_NETWORKCONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.