summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-01-09 08:50:22 +0000
committerglebius <glebius@FreeBSD.org>2012-01-09 08:50:22 +0000
commit7b863fa87ee84acb68f03cbcf963dd421d07d2b8 (patch)
tree5353910ee59114e5bf397aaf16a03509834aa055 /etc
parent5c6255ab302230be3f22b74b30ef6f13e69afc25 (diff)
downloadFreeBSD-src-7b863fa87ee84acb68f03cbcf963dd421d07d2b8.zip
FreeBSD-src-7b863fa87ee84acb68f03cbcf963dd421d07d2b8.tar.gz
Bunch of fixes to pfsync(4) module load/unload:
o Make the pfsync.ko actually usable. Before this change loading it didn't register protosw, so was a nop. However, a module /boot/kernel did confused users. o Rewrite the way we are joining multicast group: - Move multicast initialization/destruction to separate functions. - Don't allocate memory if we aren't going to join a multicast group. - Use modern API for joining/leaving multicast group. - Now the utterly wrong pfsync_ifdetach() isn't needed. o Move module initialization from SYSINIT(9) to moduledata_t method. o Refuse to unload module, unless asked forcibly. o Improve a bit some FreeBSD porting code: - Use separate malloc type. - Simplify swi sheduling. This change is probably wrong from VIMAGE viewpoint, however pfsync wasn't VIMAGE-correct before this change, too. Glanced at by: bz
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/pfsync7
1 files changed, 0 insertions, 7 deletions
diff --git a/etc/rc.d/pfsync b/etc/rc.d/pfsync
index 8be8928..6c87517 100755
--- a/etc/rc.d/pfsync
+++ b/etc/rc.d/pfsync
@@ -18,13 +18,6 @@ required_modules="pf"
pfsync_prestart()
{
- # XXX Currently pfsync cannot be a module as it must register
- # a network protocol in a static kernel table.
- if ! kldstat -q -m pfsync; then
- warn "pfsync(4) must be statically compiled in the kernel."
- return 1
- fi
-
case "$pfsync_syncdev" in
'')
warn "pfsync_syncdev is not set."
OpenPOWER on IntegriCloud