summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-21 13:19:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-21 13:19:35 +0000
commit4cfe89f76ef8c5331ad83c32e3e8fd3aa193471a (patch)
treef99558fcf65f8232a8f8b9fc52bde23e401348b1
parentNew files (diff)
downloadnetwork-demos-4cfe89f76ef8c5331ad83c32e3e8fd3aa193471a.tar.bz2
Removed -- now provided by RTEMS
-rw-r--r--STATUS6
-rw-r--r--networkconfig.h74
-rw-r--r--ttcp/include/arpa/inet.h0
-rw-r--r--ttcp/include/netdb.h0
-rw-r--r--ttcp/include/netinet/in.h0
-rw-r--r--ttcp/include/netinet/tcp.h0
-rw-r--r--ttcp/include/sys/socket.h0
-rw-r--r--usercfg.h66
8 files changed, 80 insertions, 66 deletions
diff --git a/STATUS b/STATUS
new file mode 100644
index 0000000..3420e8d
--- /dev/null
+++ b/STATUS
@@ -0,0 +1,6 @@
+#
+# $Id$
+#
+
+This set of tests is in the process of being converted from KA9Q to
+the newer port of the FreeBSD stack.
diff --git a/networkconfig.h b/networkconfig.h
new file mode 100644
index 0000000..61425ae
--- /dev/null
+++ b/networkconfig.h
@@ -0,0 +1,74 @@
+/*
+ * Network configuration
+ *
+ ************************************************************
+ * EDIT THIS FILE TO REFLECT YOUR NETWORK CONFIGURATION *
+ * BEFORE RUNNING ANY RTEMS PROGRAMS WHICH USE THE NETWORK! *
+ ************************************************************
+ *
+ * $Id$
+ */
+
+#ifndef _RTEMS_NETWORKCONFIG_H_
+#define _RTEMS_NETWORKCONFIG_H_
+
+#define RTEMS_USE_BOOTP
+
+#include <bsp.h>
+
+/*
+ * Default network interface
+ */
+static struct rtems_bsdnet_ifconfig netdriver_config = {
+ RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */
+ RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */
+
+ NULL, /* link to next interface */
+
+#if (defined (RTEMS_USE_BOOTP))
+ NULL, /* BOOTP supplies IP address */
+ NULL, /* BOOTP supplies IP net mask */
+#else
+ "128.233.14.91", /* IP address */
+ "255.255.255.0", /* IP net mask */
+#endif /* !RTEMS_USE_BOOTP */
+
+ NULL, /* Driver supplies hardware address */
+ 0 /* Use default driver parameters */
+};
+
+/*
+ * Network configuration
+ */
+struct rtems_bsdnet_config rtems_bsdnet_config = {
+ &netdriver_config,
+
+#if (defined (RTEMS_USE_BOOTP))
+ rtems_bsdnet_do_bootp,
+#else
+ NULL,
+#endif
+
+ 0, /* Default network task priority */
+ 0, /* Default mbuf capacity */
+ 0, /* Default mbuf cluster capacity */
+
+#if (!defined (RTEMS_USE_BOOTP))
+ "rgamon", /* Host name */
+ "usask.ca", /* Domain name */
+ "128.233.14.100", /* Gateway */
+ "128.233.14.1", /* Log host */
+ {"128.233.14.1" }, /* Name server(s) */
+#endif /* !RTEMS_USE_BOOTP */
+
+};
+
+/*
+ * For TFTP test application
+ */
+#if (!defined (RTEMS_USE_BOOTP))
+#define RTEMS_TFTP_TEST_HOST_NAME "128.233.14.1"
+#define RTEMS_TFTP_TEST_FILE_NAME "bootfiles/m68360/RGAmonitor"
+#endif
+
+#endif /* _RTEMS_NETWORKCONFIG_H_ */
diff --git a/ttcp/include/arpa/inet.h b/ttcp/include/arpa/inet.h
deleted file mode 100644
index e69de29..0000000
--- a/ttcp/include/arpa/inet.h
+++ /dev/null
diff --git a/ttcp/include/netdb.h b/ttcp/include/netdb.h
deleted file mode 100644
index e69de29..0000000
--- a/ttcp/include/netdb.h
+++ /dev/null
diff --git a/ttcp/include/netinet/in.h b/ttcp/include/netinet/in.h
deleted file mode 100644
index e69de29..0000000
--- a/ttcp/include/netinet/in.h
+++ /dev/null
diff --git a/ttcp/include/netinet/tcp.h b/ttcp/include/netinet/tcp.h
deleted file mode 100644
index e69de29..0000000
--- a/ttcp/include/netinet/tcp.h
+++ /dev/null
diff --git a/ttcp/include/sys/socket.h b/ttcp/include/sys/socket.h
deleted file mode 100644
index e69de29..0000000
--- a/ttcp/include/sys/socket.h
+++ /dev/null
diff --git a/usercfg.h b/usercfg.h
deleted file mode 100644
index 35a9468..0000000
--- a/usercfg.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * $Id$
- */
-
-#ifndef __USER_CFG_h
-#define __USER_CFG_h
-
-/*
- * Board ethernet address
- * REPLACE THIS WITH YOUR OWN VALUE BEFORE TRYING ANY OF THESE PROGRAMS!!!
- */
-#define MY_ETHERNET_ADDRESS "00:80:7F:22:61:77"
-
-/*
- * Some board support packages let the network driver
- * get the Ethernet address from the bootstrap PROM.
- */
-/*
-#define MY_ETHERNET_ADDRESS "prom"
-*/
-
-
-/*
- * Define this if we should use BOOTP to get information about the target?
- */
-/* #define USE_BOOTP 1 */
-
-/*
- * If you don't use BOOTP, then you must define MY_IP_ADDRESS.
- * CHOOSE A VALUE APPROPRIATE TO YOUR NETWORK!
- */
-
-#define MY_IP_ADDRESS "192.168.1.100"
-
-
-/*
- * Define this if you want to see debugging messages.
- */
-
-/* #define TRACE_NETWORK_DRIVER 1 */
-
-/*
- * Need these for the netdemo
- */
-
-#define NSERVER 2
-#define BASE_PORT 24742
-
-#define DATA_SINK_HOST "192.168.1.2"
-#define DATA_SOURCE_HOST "192.168.1.2"
-#define DATA_SOURCE_FILE "tftptest"
-
-/*
- * Do some consistency checking.
- */
-
-#ifndef MY_ETHERNET_ADDRESS
-#error "Need to define a hardware Ethernet address"
-#endif
-
-#if !defined(USE_BOOTP) && !defined(MY_IP_ADDRESS)
-#error "MY_IP_ADDRESS is not defined"
-#endif
-
-#endif
-/* end of include file */