Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/dist/pf/net
On Tue Apr 13 2010 at 01:02:44 +0000, Adam Hoka wrote:
> Module Name: src
> Committed By: ahoka
> Date: Tue Apr 13 01:02:43 UTC 2010
>
> Modified Files:
> src/sys/dist/pf/net: pf_ioctl.c
>
> Log Message:
> Do not auto unload pf if it's enabled.
Well what happens if you non-auto unload it when it's enabled? Just let
unload fail if it's busy.
> #ifdef _KERNEL_OPT
> #include "opt_inet.h"
> @@ -3367,6 +3367,13 @@
> pfdetach();
> pflogdetach();
> return devsw_detach(NULL, &pf_cdevsw);
> + case MODULE_CMD_AUTOUNLOAD:
> + /* Do not auto unload pf if it's enabled. */
> + if (pf_status.running) {
> + return EBUSY;
> + } else {
> + return ENOTTY;
> + }
> default:
> return ENOTTY;
> }
>
Home |
Main Index |
Thread Index |
Old Index