From nobody@FreeBSD.org  Tue Apr  3 06:44:59 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3F12E16A401
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Apr 2007 06:44:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 26F9913C448
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Apr 2007 06:44:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l336ixsx098783
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 3 Apr 2007 06:44:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l336dwXr098030;
	Tue, 3 Apr 2007 06:39:58 GMT
	(envelope-from nobody)
Message-Id: <200704030639.l336dwXr098030@www.freebsd.org>
Date: Tue, 3 Apr 2007 06:39:58 GMT
From: Neerlan Amorim<neerlan@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipfw show rules with old date
X-Send-Pr-Version: www-3.0

>Number:         111177
>Category:       kern
>Synopsis:       [ipfw] ipfw show rules with old date
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    julian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 03 06:50:01 GMT 2007
>Closed-Date:    Wed Apr 04 16:37:52 PDT 2007
>Last-Modified:  Wed Apr 04 16:37:52 PDT 2007
>Originator:     Neerlan Amorim
>Release:        6.2-STABLE
>Organization:
ARCNeTI
>Environment:
FreeBSD turion.proamazon.com.br 6.2-STABLE FreeBSD 6.2-STABLE #1: Mon Apr  2 13:49:00 ACT 2007     root@turion.proamazon.com.br:/usr/obj/usr/src/sys/TURION  i386
>Description:
After to install freebsd ipfw shows the rules with the correct date.
After update freebsd for version stable, ipfw shows the rules with old date.
ex: 
# ipfw -t show
00200 20 1500 Wed Dec 31 22:37:53 1969 divert 8668 ip from any to any via rl0
65535 22 1588 Wed Dec 31 22:37:53 1969 allow ip from any to any

# date
Tue Apr  3 02:19:24 AMT 2007

I installed freebsd in another computer, but problem occurred the same.
>How-To-Repeat:
# cat freebsd.sup
*default host=cvsup2.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_6
*default delete use-rel-suffix

*default compress

src-all
ports-all tag=.
#EOF

# cvsup -L 2 freebsd.sup
# cd /usr/src
# make -j4 buildworld
# make buildkernel KERNCONF=TURION
# make installkernel KERNCONF=TURION
# mergemaster -p
# make installworld
# mergemaster -Pi
# reboot

# ipfw -t show: the problem
>Fix:
Make ipfw uses the date of the system.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->julian 
Responsible-Changed-By: remko 
Responsible-Changed-When: Tue Apr 3 08:21:31 UTC 2007 
Responsible-Changed-Why:  
Hi Julian, could this have something to do with your latest ipfw change 
on -stable? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111177 

From: Julian Elischer <julian@elischer.org>
To: bug-followup@FreeBSD.org,  neerlan@gmail.com
Cc:  
Subject: Re: misc/111177: ipfw show rules with old date
Date: Tue, 03 Apr 2007 02:25:27 -0700

 I was just stunned to notice that my -current system does the same thing!
 
 I think I was testing a kernel that didn't have the change in it!
 root@trafmon1:ipfw -t show
 00001     430     39883 Thu Jan 22 21:01:57 1970 count log ip from any to any
 00001       0         0                         allow ip from any to 1.1.1.1
 65535 3066293 608653995 Thu Jan 22 21:01:57 1970 allow ip from any to any
 root@trafmon1:uptime
  2:27AM  up 22 days,  5:02, 3 users, load averages: 0.00, 0.00, 0.00
 root@trafmon1:uname -a
 FreeBSD trafmon1.wga 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sun Mar 25 20:33:07 PDT 2007     root@trafmon1.wga:/usr/obj/usr/src/sys/TM3  i386
 
 I think I need to revert this MFC AND find out what is going on in -current.
State-Changed-From-To: open->closed 
State-Changed-By: julian 
State-Changed-When: Wed Apr 4 16:36:10 PDT 2007 
State-Changed-Why:  
MFC reversed and fix added in -current 
re-MFC will occur in a few days. 


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