From nobody@FreeBSD.org  Wed May 26 00:44:29 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 97EE11065674
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 May 2010 00:44:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 879D88FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 May 2010 00:44:29 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4Q0iTTk070024
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 May 2010 00:44:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o4Q0iTNF070023;
	Wed, 26 May 2010 00:44:29 GMT
	(envelope-from nobody)
Message-Id: <201005260044.o4Q0iTNF070023@www.freebsd.org>
Date: Wed, 26 May 2010 00:44:29 GMT
From: Andrew Thompson <thompsa@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [pf] pfctl -m option does not appear to work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         147000
>Category:       kern
>Synopsis:       [pf] pfctl -m option does not appear to work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-pf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 26 05:07:34 UTC 2010
>Closed-Date:    Thu May 27 00:55:39 UTC 2010
>Last-Modified:  Thu May 27 00:55:39 UTC 2010
>Originator:     Andrew Thompson
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
FreeBSD pea.fud.org.nz 9.0-CURRENT FreeBSD 9.0-CURRENT #6 r208406M: Mon May 24 09:15:58 NZST 2010     thompsa@pea.fud.org.nz:/usr/obj/home/thompsa/scratch/fbsvn/head/sys/PEA  amd64
>Description:
When using the -m option do pfctl it should merge with the existing rules and not flush. The output below shows the rules which are currently loaded, then merging a single option and the result is an empty ruleset.
>How-To-Repeat:
[root@pea]# pfctl -sr    
No ALTQ support in kernel
ALTQ related functions disabled
pass in on bge0 inet proto tcp from any to any port = ipp flags S/SA keep state
pass in on bge0 inet proto udp from any to any port = ipp keep state
pass in on bge0 inet6 proto tcp from any to any port = ipp flags S/SA keep state
pass in on bge0 inet6 proto udp from any to any port = ipp keep state
 
[root@pea]# echo "set block-policy return" | pfctl -mf -
No ALTQ support in kernel
ALTQ related functions disabled

[root@pea]# pfctl -sr  
No ALTQ support in kernel
ALTQ related functions disabled
[root@pea]# 
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-pf 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed May 26 05:22:34 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147000 
State-Changed-From-To: open->closed 
State-Changed-By: mlaier 
State-Changed-When: Thu May 27 00:54:23 UTC 2010 
State-Changed-Why:  
Not a bug - -m does merge the options.  If you do not want to reload other 
parts of the ruleset (i.e. leave the filtering rules as-is) you need to add 
the -O option as well.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147000 
>Unformatted:
