From nobody@FreeBSD.org  Wed Feb 24 20:37:49 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 06E3E106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Feb 2010 20:37:49 +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 E9F858FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Feb 2010 20:37:48 +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 o1OKbmc5078612
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Feb 2010 20:37:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o1OKbmST078611;
	Wed, 24 Feb 2010 20:37:48 GMT
	(envelope-from nobody)
Message-Id: <201002242037.o1OKbmST078611@www.freebsd.org>
Date: Wed, 24 Feb 2010 20:37:48 GMT
From: Alexey Kouznetsov <alexey@kouznetsov.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: problem with ipfw tables
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         144269
>Category:       kern
>Synopsis:       [ipfw] problem with ipfw tables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ipfw
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 24 20:40:03 UTC 2010
>Closed-Date:    Sun Oct 02 15:56:11 UTC 2011
>Last-Modified:  Sun Oct 02 15:56:11 UTC 2011
>Originator:     Alexey Kouznetsov
>Release:        FreeBSD 7.x adm64
>Organization:
>Environment:
FreeBSD xxx.xxx.ru 7.3-PRERELEASE FreeBSD 7.3-PRERELEASE #0: Thu Feb 18 17:35:07 MSK 2010     root@xxx.xxx.ru:/usr/o
rc/sys/XXXXXX  amd64
>Description:
sometimes we have "Flying Dutchman" in freebsd tables
# ipfw table 30 list | wc -l
    1331
# /sbin/ipfw table 30 list | egrep 10.10.2.143
10.10.2.143/32 101
# /sbin/ipfw table 30 delete 10.10.2.143
ipfw: setsockopt(IP_FW_TABLE_DEL): No such process
# /sbin/ipfw table 30 list | egrep 10.10.2.143
10.10.2.143/32 101
# ipfw table 30 list | wc -l
    1331

>How-To-Repeat:
this problem returns time to time. I saw it some time since 7.0-RELEASE until latest 7 stable. (did not use i386 with 7.x and tables). Did not saw it on 6.x and older branch. We do not use 8.x
>Fix:
reboot :(. But after reboot, possible, we will have different ip(s) "always in table".

Also sometimes I saw 
"pipe tablearg ip from any to table(30) xmit em1 out"
and some pipes shown IPs, whis are not in table 30 at all, and never was here. (this is not output problem, speed is actually same as defined for this pipe, all counters grown and so on. "show table 30" do not show the IP, but this actually come to pipe)
I use fake pipe without speed limits, and add to such table all possible IPs, which are should not to be speed limited, with this, fake, argument. In this case this second problem gone. Also seen only on 7.x amd64 branch.

I think both problems came from same place.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ipfw 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Feb 24 23:07:24 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: Mikolaj Golub <to.my.trociny@gmail.com>
To: freebsd-bugs@FreeBSD.org,  freebsd-ipfw@FreeBSD.org, bug-followup@FreeBSD.org
Cc: alexey@kouznetsov.com
Subject: Re: kern/144269: [ipfw] problem with ipfw tables
Date: Sun, 28 Feb 2010 17:04:28 +0200

 This looks like related to kern/127209 and kern/143474.
 
 -- 
 Mikolaj Golub

From: Mark Linimon <linimon@lonesome.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/144269: [ipfw] problem with ipfw tables
Date: Sun, 28 Feb 2010 09:59:52 -0600

 ----- Forwarded message from Mikolaj Golub <to.my.trociny@gmail.com> -----
 
 To: freebsd-bugs@FreeBSD.org, freebsd-ipfw@FreeBSD.org,
 	bug-followup@FreeBSD.org
 Organization: TOA Ukraine
 From: Mikolaj Golub <to.my.trociny@gmail.com>
 Cc: alexey@kouznetsov.com
 Subject: Re: kern/144269: [ipfw] problem with ipfw tables
 
 This looks like related to kern/127209 and kern/143474.
 
 -- 
 Mikolaj Golub
 _______________________________________________
 freebsd-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 
 
 ----- End forwarded message -----

From: "Alexey Kouznetsov" <alexey@kouznetsov.com>
To: "'Mikolaj Golub'" <to.my.trociny@gmail.com>
Cc: <freebsd-bugs@FreeBSD.org>,
	<freebsd-ipfw@FreeBSD.org>,
	<bug-followup@FreeBSD.org>
Subject: RE: kern/144269: [ipfw] problem with ipfw tables
Date: Sun, 28 Feb 2010 19:49:22 +0300

 Yes. Looks like this is same
 
 -----Original Message-----
 From: Mikolaj Golub [mailto:to.my.trociny@gmail.com] 
 Sent: Sunday, February 28, 2010 6:04 PM
 To: freebsd-bugs@FreeBSD.org; freebsd-ipfw@FreeBSD.org;
 bug-followup@FreeBSD.org
 Cc: alexey@kouznetsov.com
 Subject: Re: kern/144269: [ipfw] problem with ipfw tables
 
 This looks like related to kern/127209 and kern/143474.
 
 -- 
 Mikolaj Golub
 
State-Changed-From-To: open->feedback 
State-Changed-By: ae 
State-Changed-When: Thu Jul 7 08:53:52 UTC 2011 
State-Changed-Why:  
Can you reproduce this on 8.x+ releases? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144269 
State-Changed-From-To: feedback->closed 
State-Changed-By: ae 
State-Changed-When: Sun Oct 2 15:53:59 UTC 2011 
State-Changed-Why:  
The submitter has reported that he could not reproduce the problem on 8.x 

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