source: network-demos/networkconfig.h @ 7bd2c06

4.11network-demos-4-10-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branch
Last change on this file since 7bd2c06 was 7bd2c06, checked in by Joel Sherrill <joel.sherrill@…>, on 09/14/07 at 20:54:42

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

  • networkconfig.h: Loopback only network configuration. Use one of the real ones as an example.
  • Property mode set to 100644
File size: 1.9 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};
52
53/*
54 * For TFTP test application
55 */
56#if (defined (RTEMS_USE_BOOTP))
57#define RTEMS_TFTP_TEST_HOST_NAME "BOOTP_HOST"
58#define RTEMS_TFTP_TEST_FILE_NAME "BOOTP_FILE"
59#else
60#define RTEMS_TFTP_TEST_HOST_NAME "XXX.YYY.ZZZ.XYZ"
61#define RTEMS_TFTP_TEST_FILE_NAME "tftptest"
62#endif
63
64/*
65 * For NFS test application
66 *
67 * NFS server/path to mount and a directory to ls once mounted
68 */
69#define RTEMS_NFS_SERVER      "192.168.1.210"
70#define RTEMS_NFS_SERVER_PATH "/home"
71#define RTEMS_NFS_LS_PATH     "/mnt/nfstest"
72#endif /* _RTEMS_NETWORKCONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.