mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
Split some long lines to fit 80 columns (the code in RELENG_4
was already correct).
This commit is contained in:
parent
f5db59f9d6
commit
29c1402aa2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116770
@ -1607,15 +1607,20 @@ sysctl_handler(int ac, char *av[], int which)
|
||||
if (*av == NULL) {
|
||||
warnx("missing keyword to enable/disable\n");
|
||||
} else if (strncmp(*av, "firewall", strlen(*av)) == 0) {
|
||||
sysctlbyname("net.inet.ip.fw.enable", NULL, 0, &which, sizeof(which));
|
||||
sysctlbyname("net.inet.ip.fw.enable", NULL, 0,
|
||||
&which, sizeof(which));
|
||||
} else if (strncmp(*av, "one_pass", strlen(*av)) == 0) {
|
||||
sysctlbyname("net.inet.ip.fw.one_pass", NULL, 0, &which, sizeof(which));
|
||||
sysctlbyname("net.inet.ip.fw.one_pass", NULL, 0,
|
||||
&which, sizeof(which));
|
||||
} else if (strncmp(*av, "debug", strlen(*av)) == 0) {
|
||||
sysctlbyname("net.inet.ip.fw.debug", NULL, 0, &which, sizeof(which));
|
||||
sysctlbyname("net.inet.ip.fw.debug", NULL, 0,
|
||||
&which, sizeof(which));
|
||||
} else if (strncmp(*av, "verbose", strlen(*av)) == 0) {
|
||||
sysctlbyname("net.inet.ip.fw.verbose", NULL, 0, &which, sizeof(which));
|
||||
sysctlbyname("net.inet.ip.fw.verbose", NULL, 0,
|
||||
&which, sizeof(which));
|
||||
} else if (strncmp(*av, "dyn_keepalive", strlen(*av)) == 0) {
|
||||
sysctlbyname("net.inet.ip.fw.dyn_keepalive", NULL, 0, &which, sizeof(which));
|
||||
sysctlbyname("net.inet.ip.fw.dyn_keepalive", NULL, 0,
|
||||
&which, sizeof(which));
|
||||
} else {
|
||||
warnx("unrecognize enable/disable keyword: %s\n", *av);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user