summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-30 22:36:04 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-07-30 22:36:04 +0000
commit2ddb68f75e460570602e53c37eee74af42cd86e7 (patch)
tree8c6c3243110be2215010f7570c15504933f67504
parentSwitched to using "../user.cfg" (diff)
downloadnetwork-demos-2ddb68f75e460570602e53c37eee74af42cd86e7.tar.bz2
New files.
-rw-r--r--DEBUG.linux12
-rw-r--r--usercfg.h55
2 files changed, 67 insertions, 0 deletions
diff --git a/DEBUG.linux b/DEBUG.linux
new file mode 100644
index 0000000..9e9eeba
--- /dev/null
+++ b/DEBUG.linux
@@ -0,0 +1,12 @@
+#
+# $Id$
+#
+
+TCPDUMP
+=======
+On Linux, you can use the tcpdump utility to examine packets. Something
+like this:
+
+tcpdump -i eth0
+
+tcpdump can filter packets. See the man page for details.
diff --git a/usercfg.h b/usercfg.h
new file mode 100644
index 0000000..e9d4ae0
--- /dev/null
+++ b/usercfg.h
@@ -0,0 +1,55 @@
+/*
+ * $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
+
+/*
+ * 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 */