summaryrefslogtreecommitdiff
path: root/sbin/ipf/ipf.h
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1996-01-07 02:34:41 +0000
committerdm <dm@cvs.openbsd.org>1996-01-07 02:34:41 +0000
commit01b9b71d86a5edcc543a88b2d407927fa52c042d (patch)
tree878168b4effcec4e50c243cfd1095656af14f4db /sbin/ipf/ipf.h
parent2defc765aa92d65e239f5b4d36582850fd58b7da (diff)
from beurton@fnet.fr: Darren Reed's IP filter
Diffstat (limited to 'sbin/ipf/ipf.h')
-rw-r--r--sbin/ipf/ipf.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/sbin/ipf/ipf.h b/sbin/ipf/ipf.h
new file mode 100644
index 00000000000..537c15b901d
--- /dev/null
+++ b/sbin/ipf/ipf.h
@@ -0,0 +1,43 @@
+/*
+ * (C)opyright 1993,1994,1995 by Darren Reed.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and due credit is given
+ * to the original author and the contributors.
+ *
+ * @(#)ipf.h 1.7 10/15/95
+ */
+
+#define OPT_INQUE FR_INQUE /* 0x0001 */
+#define OPT_REMOVE 0x0002
+#define OPT_OUTQUE FR_OUTQUE /* 0x0004 */
+#define OPT_DEBUG 0x0008
+#define OPT_SHOWLIST 0x0010
+#define OPT_VERBOSE 0x0020
+#define OPT_LOG FR_LOG /* 0x0040 */
+#define OPT_DONOTHING 0x0080
+#define OPT_INACTIVE FR_INACTIVE /* 0x0800 */
+#define OPT_HITS 0x10000
+#define OPT_BRIEF 0x20000
+
+extern struct frentry *parse();
+
+extern void printfr(), binprint();
+
+#if defined(__SVR4) || defined(__svr4__)
+#define index strchr
+#define bzero(a,b) memset(a, 0, b)
+#define bcopy(a,b,c) memmove(b,a,c)
+#endif
+
+struct ipopt_names {
+ int on_value;
+ int on_bit;
+ int on_siz;
+ char *on_name;
+};
+
+
+extern u_long hostnum(), optname();
+extern void printpacket();
+