aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2012-01-09 08:50:22 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2012-01-09 08:50:22 +0000
commit5c39f7bdebc8c4f19925a03f6b7504df9540cff0 (patch)
tree5353910ee59114e5bf397aaf16a03509834aa055 /etc
parent98a38f5b1d2d196f3520956569030a22d1169112 (diff)
downloadsrc-5c39f7bdebc8c4f19925a03f6b7504df9540cff0.tar.gz
src-5c39f7bdebc8c4f19925a03f6b7504df9540cff0.zip
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
Notes
Notes: svn path=/head/; revision=229850
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 8be89282d120..6c87517f084c 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."