summaryrefslogtreecommitdiff
path: root/dlcommon.h
diff options
context:
space:
mode:
authorpdw <>2003-06-06 22:42:35 +0000
committerpdw <>2003-06-06 22:42:35 +0000
commit4089483e6ab31e8a899928d259a4b11535519124 (patch)
treee32f1f48b31fb18c5b74fa585e763a321fbd0255 /dlcommon.h
parentc7429ed887fd49a32e25bdfcf336f6ecae9bd028 (diff)
downloadiftop-4089483e6ab31e8a899928d259a4b11535519124.zip
Solaris/autoconf patch from Jonathan Abbey <jonabbey@ganymeta.org>
Diffstat (limited to 'dlcommon.h')
-rw-r--r--dlcommon.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/dlcommon.h b/dlcommon.h
new file mode 100644
index 0000000..0d1f35a
--- /dev/null
+++ b/dlcommon.h
@@ -0,0 +1,37 @@
+#ifndef DLCOMMON_H
+#define DLCOMMON_H
+
+/*
+ * Common DLPI Test Suite header file
+ *
+ */
+
+/*
+ * Maximum control/data buffer size (in long's !!) for getmsg().
+ */
+#define MAXDLBUF 8192
+
+/*
+ * Maximum number of seconds we'll wait for any
+ * particular DLPI acknowledgment from the provider
+ * after issuing a request.
+ */
+#define MAXWAIT 15
+
+/*
+ * Maximum address buffer length.
+ */
+#define MAXDLADDR 1024
+
+
+/*
+ * Handy macro.
+ */
+#define OFFADDR(s, n) (u_char*)((char*)(s) + (int)(n))
+
+/*
+ * externs go here
+ */
+extern void sigalrm();
+
+#endif /* !DLCOMMON_H */