1 | /* Init |
---|
2 | * |
---|
3 | * |
---|
4 | * Input parameters: NONE |
---|
5 | * |
---|
6 | * Output parameters: NONE |
---|
7 | * |
---|
8 | * COPYRIGHT (c) 1989-1999. |
---|
9 | * On-Line Applications Research Corporation (OAR). |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.rtems.com/license/LICENSE. |
---|
14 | * |
---|
15 | * $Id$ |
---|
16 | */ |
---|
17 | |
---|
18 | #ifdef HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems.h> |
---|
23 | |
---|
24 | int main( int, char **, char **); |
---|
25 | |
---|
26 | /* configuration information */ |
---|
27 | |
---|
28 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
29 | #define CONFIGURE_MAXIMUM_TASKS 10 |
---|
30 | #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM |
---|
31 | #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20 |
---|
32 | #define CONFIGURE_INIT_TASK_ENTRY_POINT (void *)main |
---|
33 | |
---|
34 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
35 | #define CONFIGURE_INIT |
---|
36 | |
---|
37 | #include <rtems/confdefs.h> |
---|
38 | |
---|
39 | /* Loopback Network Configuration */ |
---|
40 | #if defined(RTEMS_NETWORKING) |
---|
41 | #include <rtems/rtems_bsdnet.h> |
---|
42 | #include <sys/socket.h> |
---|
43 | #include <netinet/in.h> |
---|
44 | |
---|
45 | extern int rtems_bsdnet_loopattach(struct rtems_bsdnet_ifconfig *, int); |
---|
46 | |
---|
47 | static struct rtems_bsdnet_ifconfig loopback_config = { |
---|
48 | "lo0", /* name */ |
---|
49 | rtems_bsdnet_loopattach, /* attach function */ |
---|
50 | NULL, /* link to next interface */ |
---|
51 | "127.0.0.1", /* IP address */ |
---|
52 | "255.0.0.0", /* IP net mask */ |
---|
53 | }; |
---|
54 | |
---|
55 | struct rtems_bsdnet_config rtems_bsdnet_config = { |
---|
56 | &loopback_config, /* Network interface */ |
---|
57 | NULL, /* Use fixed network configuration */ |
---|
58 | 0, /* Default network task priority */ |
---|
59 | 0, /* Default mbuf capacity */ |
---|
60 | 0, /* Default mbuf cluster capacity */ |
---|
61 | "testSystem", /* Host name */ |
---|
62 | "nowhere.com", /* Domain name */ |
---|
63 | "127.0.0.1", /* Gateway */ |
---|
64 | "127.0.0.1", /* Log host */ |
---|
65 | {"127.0.0.1" }, /* Name server(s) */ |
---|
66 | {"127.0.0.1" }, /* NTP server(s) */ |
---|
67 | }; |
---|
68 | #endif |
---|
69 | |
---|