diff options
author | andre <andre@FreeBSD.org> | 2004-10-19 21:14:57 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2004-10-19 21:14:57 +0000 |
commit | 9f43dad9fc6c03f7de0b8524d64fa3cdac16bd58 (patch) | |
tree | cdb937a58e5fb1c4e6d3074c04eadefb30ae7251 /sys/modules | |
parent | 40693cc7d92c8317aac4b7e774996bf54b3d79f9 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/modules/ipdivert/Makefile | 8 |
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> |