svn commit: r272515 - projects/ipfw/sys/netpfil/ipfw

John Baldwin jhb at freebsd.org
Mon Oct 6 16:38:10 UTC 2014


On Saturday, October 04, 2014 12:10:33 PM Alexander V. Chernikov wrote:
> Author: melifaro
> Date: Sat Oct  4 12:10:32 2014
> New Revision: 272515
> URL: https://svnweb.freebsd.org/changeset/base/272515
> 
> Log:
>   Add "ipfw_ctl3" FEATURE to indicate presence of new ipfw interface.
> 
> Modified:
>   projects/ipfw/sys/netpfil/ipfw/ip_fw2.c
> 
> Modified: projects/ipfw/sys/netpfil/ipfw/ip_fw2.c
> ============================================================================
> == --- projects/ipfw/sys/netpfil/ipfw/ip_fw2.c	Sat Oct  4 11:40:35
> 2014	(r272514) +++ projects/ipfw/sys/netpfil/ipfw/ip_fw2.c	Sat Oct  4
> 12:10:32 2014	(r272515) @@ -2874,6 +2874,7 @@ static moduledata_t ipfwmod =
> {
>  #define	IPFW_VNET_ORDER		(IPFW_MODEVENT_ORDER + 2) /* Later still. */
> 
>  DECLARE_MODULE(ipfw, ipfwmod, IPFW_SI_SUB_FIREWALL, IPFW_MODEVENT_ORDER);
> +FEATURE(ipfw_ctl3, "ipfw new sockopt calls");
>  MODULE_VERSION(ipfw, 2);
>  /* should declare some dependencies here */

Would it be better to bump the module version to 3 instead?  Userland programs 
can then use modfind() and modstat() to determine the version.

-- 
John Baldwin


More information about the svn-src-projects mailing list