[eb04e53] | 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 | */ |
---|
| 27 | extern int rtems_bsdnet_loopattach(); |
---|
| 28 | |
---|
| 29 | /* |
---|
| 30 | * Default network interface |
---|
| 31 | */ |
---|
| 32 | static 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 | */ |
---|
| 45 | struct 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_ */ |
---|