003 File Manager
Current Path:
/usr/src/contrib/ipfilter
usr
/
src
/
contrib
/
ipfilter
/
📁
..
📄
BNF
(3.52 KB)
📄
BugReport
(409 B)
📄
HISTORY
(55.43 KB)
📄
LICENCE
(612 B)
📄
Makefile
(14.48 KB)
📄
NAT.FreeBSD
(2.84 KB)
📄
README
(4.53 KB)
📄
STYLE.TXT
(1.96 KB)
📄
WhatsNew50.txt
(2.26 KB)
📄
Y2K
(48 B)
📄
arc4random.c
(5.03 KB)
📄
bpf-ipf.h
(13.72 KB)
📄
bpf_filter.c
(12.32 KB)
📄
genmask.c
(1.14 KB)
📄
ip_dstlist.c
(43.79 KB)
📄
ip_dstlist.h
(1.43 KB)
📄
ip_fil.c
(14.13 KB)
📄
ip_fil_compat.c
(122.12 KB)
📄
ip_msnrpc_pxy.c
(6.25 KB)
📄
ipf.h
(11.97 KB)
📄
ipf_rb.h
(10.37 KB)
📁
iplang
📄
ipmon.h
(3.27 KB)
📁
ipsend
📄
ipt.h
(536 B)
📄
kmem.h
(526 B)
📁
l4check
📁
lib
📁
man
📄
md5.c
(11.36 KB)
📄
md5.h
(3.11 KB)
📄
mkfilters
(2.62 KB)
📄
mlfk_rule.c
(1.23 KB)
📄
opt_inet6.h
(14 B)
📄
opts.h
(1.45 KB)
📄
pcap-ipf.h
(642 B)
📄
radix_ipf.c
(41.92 KB)
📄
radix_ipf.h
(2.64 KB)
📁
rules
📁
samples
📄
snoop.h
(664 B)
📁
sys
📁
tools
Editing: mlfk_rule.c
/* $FreeBSD$ */ /* * Copyright (C) 2012 by Darren Reed. * * See the IPFILTER.LICENCE file for details on licencing. * * $Id$ */ #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> #include <sys/module.h> #include <sys/conf.h> #include <sys/socket.h> #include <sys/sysctl.h> #include <net/if.h> #include <netinet/in_systm.h> #include <netinet/in.h> #include <netinet/ipl.h> #include <netinet/ip_compat.h> #include <netinet/ip_fil.h> #include <netinet/ip_state.h> #include <netinet/ip_nat.h> #include <netinet/ip_auth.h> #include <netinet/ip_frag.h> #include "ip_rules.h" extern ipf_main_softc_t ipfmain; static int ipfrule_modevent(module_t mod, int type, void *unused) { int error = 0; switch (type) { case MOD_LOAD : error = ipfrule_add(); if (!error) ipfmain.ipf_refcnt++; break; case MOD_UNLOAD : error = ipfrule_remove(); if (!error) ipfmain.ipf_refcnt--; break; default: error = EINVAL; break; } return error; } static moduledata_t ipfrulemod = { "ipfrule", ipfrule_modevent, 0 }; DECLARE_MODULE(ipfrule, ipfrulemod, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY); #ifdef MODULE_DEPEND MODULE_DEPEND(ipfrule, ipfilter, 1, 1, 1); #endif #ifdef MODULE_VERSION MODULE_VERSION(ipfrule, 1); #endif
Upload File
Create Folder