Date: Tue, 14 Oct 2008 12:26:55 +0000 (UTC) From: Maxim Konovalov <maxim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r183881 - head/sys/netinet Message-ID: <200810141226.m9ECQtPW006469@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: maxim Date: Tue Oct 14 12:26:55 2008 New Revision: 183881 URL: http://svn.freebsd.org/changeset/base/183881 Log: o Reformat ipfw nat get|setsockopt code to look it more style(9) compliant. No functional changes. Modified: head/sys/netinet/ip_fw2.c Modified: head/sys/netinet/ip_fw2.c ============================================================================== --- head/sys/netinet/ip_fw2.c Tue Oct 14 10:23:11 2008 (r183880) +++ head/sys/netinet/ip_fw2.c Tue Oct 14 12:26:55 2008 (r183881) @@ -4385,49 +4385,52 @@ ipfw_ctl(struct sockopt *sopt) break; case IP_FW_NAT_CFG: - { - if (IPFW_NAT_LOADED) - error = ipfw_nat_cfg_ptr(sopt); - else { - printf("IP_FW_NAT_CFG: ipfw_nat not present, please load it.\n"); - error = EINVAL; + { + if (IPFW_NAT_LOADED) + error = ipfw_nat_cfg_ptr(sopt); + else { + printf("IP_FW_NAT_CFG: %s\n", + "ipfw_nat not present, please load it"); + error = EINVAL; + } } - } - break; + break; case IP_FW_NAT_DEL: - { - if (IPFW_NAT_LOADED) - error = ipfw_nat_del_ptr(sopt); - else { - printf("IP_FW_NAT_DEL: ipfw_nat not present, please load it.\n"); - printf("ipfw_nat not loaded: %d\n", sopt->sopt_name); - error = EINVAL; + { + if (IPFW_NAT_LOADED) + error = ipfw_nat_del_ptr(sopt); + else { + printf("IP_FW_NAT_DEL: %s\n", + "ipfw_nat not present, please load it"); + error = EINVAL; + } } - } - break; + break; case IP_FW_NAT_GET_CONFIG: - { - if (IPFW_NAT_LOADED) - error = ipfw_nat_get_cfg_ptr(sopt); - else { - printf("IP_FW_NAT_GET_CFG: ipfw_nat not present, please load it.\n"); - error = EINVAL; + { + if (IPFW_NAT_LOADED) + error = ipfw_nat_get_cfg_ptr(sopt); + else { + printf("IP_FW_NAT_GET_CFG: %s\n", + "ipfw_nat not present, please load it"); + error = EINVAL; + } } - } - break; + break; case IP_FW_NAT_GET_LOG: - { - if (IPFW_NAT_LOADED) - error = ipfw_nat_get_log_ptr(sopt); - else { - printf("IP_FW_NAT_GET_LOG: ipfw_nat not present, please load it.\n"); - error = EINVAL; + { + if (IPFW_NAT_LOADED) + error = ipfw_nat_get_log_ptr(sopt); + else { + printf("IP_FW_NAT_GET_LOG: %s\n", + "ipfw_nat not present, please load it"); + error = EINVAL; + } } - } - break; + break; default: printf("ipfw: ipfw_ctl invalid option %d\n", sopt->sopt_name);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810141226.m9ECQtPW006469>