summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/mlh_rule.c
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2013-07-19 05:41:57 +0000
committercy <cy@FreeBSD.org>2013-07-19 05:41:57 +0000
commit672af8808c0e7c15f330b401482f9271c2eb3fa6 (patch)
tree225b5acf68c01bc6a260b386c2b2dbf4fa2839e3 /contrib/ipfilter/mlh_rule.c
parent71e82d94e82560b20789833f60056506de34de8b (diff)
downloadFreeBSD-src-672af8808c0e7c15f330b401482f9271c2eb3fa6.zip
FreeBSD-src-672af8808c0e7c15f330b401482f9271c2eb3fa6.tar.gz
As per the developers handbook (5.3.1 step 1), prepare the vendor trees for
import of new ipfilter vendor sources by flattening them. To keep the tags consistent with dist, the tags are also flattened. Approved by: glebius (Mentor)
Diffstat (limited to 'contrib/ipfilter/mlh_rule.c')
-rw-r--r--contrib/ipfilter/mlh_rule.c114
1 files changed, 0 insertions, 114 deletions
diff --git a/contrib/ipfilter/mlh_rule.c b/contrib/ipfilter/mlh_rule.c
deleted file mode 100644
index e71c7be..0000000
--- a/contrib/ipfilter/mlh_rule.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/* $NetBSD$ */
-
-/*
- * Copyright (C) 1993-1998 by Darren Reed.
- *
- * See the IPFILTER.LICENCE file for details on licencing.
- *
- */
-/* #pragma ident "@(#)solaris.c 1.12 6/5/96 (C) 1995 Darren Reed"*/
-
-/*typedef unsigned int spustate_t;*/
-struct uio;
-
-#include <sys/types.h>
-#include <sys/cmn_err.h>
-#include <sys/kernel.h>
-#include <sys/systm.h>
-#include <sys/malloc.h>
-#include <sys/conf.h>
-#include <sys/callout.h>
-#include <sys/moddefs.h>
-#include <sys/io.h>
-#include <sys/wsio.h>
-#include <sys/param.h>
-#include <sys/errno.h>
-#include <sys/byteorder.h>
-#include <sys/socket.h>
-#include <sys/stropts.h>
-#include <net/if.h>
-#include <net/af.h>
-#include <net/route.h>
-#include <netinet/in.h>
-#include <netinet/in_systm.h>
-#include <netinet/if_ether.h>
-#include <netinet/ip.h>
-#include <netinet/ip_var.h>
-#include <netinet/tcp.h>
-#include <netinet/udp.h>
-#include <netinet/tcpip.h>
-#include <netinet/ip_icmp.h>
-
-#include "ip_compat.h"
-#include "ip_fil.h"
-#include "ip_rules.h"
-
-
-/*
- * Driver Header
- */
-static drv_info_t ipf_drv_info = {
- "IP Filter Rules", /* type */
- "pseudo", /* class */
- DRV_PSEUDO|DRV_SAVE_CONF|DRV_MP_SAFE, /* flags */
- -1, /* b_major */
- -1, /* c_major */
- NULL, /* cdio */
- NULL, /* gio_private */
- NULL, /* cdio_private */
-};
-
-
-extern struct mod_operations gio_mod_ops;
-static drv_info_t ipf_drv_info;
-extern struct mod_conf_data ipf_conf_data;
-
-static struct mod_type_data ipf_drv_link = {
- IPL_VERSION, (void *)NULL
-};
-
-static struct modlink ipf_mod_link[] = {
- { &gio_mod_ops, (void *)&ipf_drv_link },
- { NULL, (void *)NULL }
-};
-
-struct modwrapper ipf_wrapper = {
- MODREV,
- ipf_load,
- ipf_unload,
- (void (*)())NULL,
- (void *)&ipf_conf_data,
- ipf_mod_link
-};
-
-
-static int ipf_load(void *arg)
-{
- int i;
-
- i = ipfrule_add();
- if (!i)
- fr_refcnt--;
-#ifdef IPFDEBUG
- printf("IP Filter Rules: ipfrule_add() = %d\n", i);
-#endif
- if (!i)
- cmn_err(CE_CONT, "IP Filter Rules: Loaded\n");
- return i;
-}
-
-
-static int ipf_unload(void *arg)
-{
- int i;
-
- i = ipfrule_remove();
- if (!i)
- fr_refcnt--;
-#ifdef IPFDEBUG
- printf("IP Filter Rules: ipfrule_remove() = %d\n", i);
-#endif
- if (!i)
- cmn_err(CE_CONT, "IP Filter Rules: Unloaded\n");
- return i;
-}
OpenPOWER on IntegriCloud