diff options
Diffstat (limited to 'cpukit/libmisc/dummy/dummy-networking.c')
-rw-r--r-- | cpukit/libmisc/dummy/dummy-networking.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/cpukit/libmisc/dummy/dummy-networking.c b/cpukit/libmisc/dummy/dummy-networking.c new file mode 100644 index 0000000000..77d708d516 --- /dev/null +++ b/cpukit/libmisc/dummy/dummy-networking.c @@ -0,0 +1,44 @@ +/* + * Dummy configuration file + * + * COPYRIGHT (c) 1989-2008. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <rtems.h> + +/* Loopback Network Configuration */ +#if defined(RTEMS_NETWORKING) + #include <rtems/rtems_bsdnet.h> + #include <sys/socket.h> + #include <netinet/in.h> + + struct rtems_bsdnet_config rtems_bsdnet_config = { + NULL, /* Network interface */ + NULL, /* Use fixed network configuration */ + 0, /* Default network task priority */ + 0, /* Default mbuf capacity */ + 0, /* Default mbuf cluster capacity */ + "testSystem", /* Host name */ + "nowhere.com", /* Domain name */ + "127.0.0.1", /* Gateway */ + "127.0.0.1", /* Log host */ + {"127.0.0.1" }, /* Name server(s) */ + {"127.0.0.1" }, /* NTP server(s) */ + 1, /* sb_efficiency */ + 0, /* udp_tx_buf_size */ + 0, /* udp_rx_buf_size */ + 0, /* tcp_tx_buf_size */ + 0 /* tcp_rx_buf_size */ + }; +#endif |