summaryrefslogtreecommitdiffstats
path: root/sys/modules/ipdivert
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-10-19 21:14:57 +0000
committerandre <andre@FreeBSD.org>2004-10-19 21:14:57 +0000
commit9f43dad9fc6c03f7de0b8524d64fa3cdac16bd58 (patch)
treecdb937a58e5fb1c4e6d3074c04eadefb30ae7251 /sys/modules/ipdivert
parent40693cc7d92c8317aac4b7e774996bf54b3d79f9 (diff)
downloadFreeBSD-src-9f43dad9fc6c03f7de0b8524d64fa3cdac16bd58.zip
FreeBSD-src-9f43dad9fc6c03f7de0b8524d64fa3cdac16bd58.tar.gz
Convert IPDIVERT into a loadable module. This makes use of the dynamic loadability
of protocols. The call to divert_packet() is done through a function pointer. All semantics of IPDIVERT remain intact. If IPDIVERT is not loaded ipfw will refuse to install divert rules and natd will complain about 'protocol not supported'. Once it is loaded both will work and accept rules and open the divert socket. The module can only be unloaded if no divert sockets are open. It does not close any divert sockets when an unload is requested but will return EBUSY instead.
Diffstat (limited to 'sys/modules/ipdivert')
-rw-r--r--sys/modules/ipdivert/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/modules/ipdivert/Makefile b/sys/modules/ipdivert/Makefile
new file mode 100644
index 0000000..203b4bf
--- /dev/null
+++ b/sys/modules/ipdivert/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../netinet
+
+KMOD= ipdivert
+SRCS= ip_divert.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud