Set net.inet6.ip6.fw.enable as well.

This commit is contained in:
Hajimu UMEMOTO 2010-04-06 12:28:08 +00:00
parent 3f1c4c4f31
commit c323a5fa93
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206266

View File

@ -1740,6 +1740,8 @@ ipfw_sysctl_handler(char *av[], int which)
} else if (_substrcmp(*av, "firewall") == 0) {
sysctlbyname("net.inet.ip.fw.enable", NULL, 0,
&which, sizeof(which));
sysctlbyname("net.inet6.ip6.fw.enable", NULL, 0,
&which, sizeof(which));
} else if (_substrcmp(*av, "one_pass") == 0) {
sysctlbyname("net.inet.ip.fw.one_pass", NULL, 0,
&which, sizeof(which));