diff options
author | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-02-11 22:13:34 -0700 |
---|---|---|
committer | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-03-02 14:29:29 -0700 |
commit | af6b0e296605c82d710385f41117396a54d4d625 (patch) | |
tree | b1398a475df9d9f593eea523711f916424b14c27 /libmisc/dummy-networking.c | |
parent | lnetworking: install the header files (diff) | |
download | rtems-net-legacy-af6b0e296605c82d710385f41117396a54d4d625.tar.bz2 |
Add libmisc and librpc from RTEMS cpukit
Diffstat (limited to 'libmisc/dummy-networking.c')
-rw-r--r-- | libmisc/dummy-networking.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/libmisc/dummy-networking.c b/libmisc/dummy-networking.c new file mode 100644 index 0000000..379e23e --- /dev/null +++ b/libmisc/dummy-networking.c @@ -0,0 +1,42 @@ +/* + * 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.org/license/LICENSE. + */ + +#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 |