summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fwdef.c
diff options
context:
space:
mode:
authorugen <ugen@FreeBSD.org>1995-01-12 13:06:32 +0000
committerugen <ugen@FreeBSD.org>1995-01-12 13:06:32 +0000
commitdd3cca2bda9d3ca703f747b3b0b0e7ba3826e268 (patch)
treee08a527d927cd2352bf9634b2b9f5675613a97fe /sys/netinet/ip_fwdef.c
parentfb7c07cbe772b3ba04eb95bdebe04e365f18d72f (diff)
downloadFreeBSD-src-dd3cca2bda9d3ca703f747b3b0b0e7ba3826e268.zip
FreeBSD-src-dd3cca2bda9d3ca703f747b3b0b0e7ba3826e268.tar.gz
Actual firewall change.
1) Firewall is not subdivided on forwarding / blocking chains anymore.Actually only one chain left-it was the blocking one. 2) LKM support.ip_fwdef.c is function pointers definition and goes into kernel along with all INET stuff.
Diffstat (limited to 'sys/netinet/ip_fwdef.c')
-rw-r--r--sys/netinet/ip_fwdef.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/sys/netinet/ip_fwdef.c b/sys/netinet/ip_fwdef.c
new file mode 100644
index 0000000..4b6e6f0
--- /dev/null
+++ b/sys/netinet/ip_fwdef.c
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 1993 Daniel Boulet
+ * Copyright (c) 1994 Ugen J.S.Antsilevich
+ *
+ * Redistribution and use in source forms, with and without modification,
+ * are permitted provided that this entire comment appears intact.
+ *
+ * Redistribution in binary form may occur without any restrictions.
+ * Obviously, it would be nice if you gave credit where credit is due
+ * but requiring it would be too onerous.
+ *
+ * This software is provided ``AS IS'' without any warranties of any kind.
+ */
+
+/*
+ * Dumb definitions which needed when
+ * firewall/accounting module is not loaded.
+ */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/domain.h>
+#include <sys/socket.h>
+#include <sys/errno.h>
+#include <sys/time.h>
+#include <sys/kernel.h>
+
+#include <net/if.h>
+#include <net/route.h>
+
+
+#include <netinet/in.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
+
+#include <netinet/ip_fw.h>
+
+struct ip_fw *ip_fw_chain=NULL;
+u_short ip_fw_policy=0;
+
+struct ip_fw *ip_acct_chain=NULL;
+
+int (*ip_fw_chk_ptr)(struct ip *,struct ifnet *,struct ip_fw *)=NULL;
+int (*ip_fw_ctl_ptr)(int,struct mbuf *)=NULL;
+
+void (*ip_acct_cnt_ptr)(struct ip *,struct ifnet *,struct ip_fw *,int)=NULL;
+int (*ip_acct_ctl_ptr)(int,struct mbuf *)=NULL;
OpenPOWER on IntegriCloud