From af6b0e296605c82d710385f41117396a54d4d625 Mon Sep 17 00:00:00 2001 From: Vijay Kumar Banerjee Date: Thu, 11 Feb 2021 22:13:34 -0700 Subject: Add libmisc and librpc from RTEMS cpukit --- libmisc/dummy-networking.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 libmisc/dummy-networking.c (limited to 'libmisc/dummy-networking.c') 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 + +/* Loopback Network Configuration */ +#if defined(RTEMS_NETWORKING) + #include + #include + #include + + 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 -- cgit v1.2.3