From bs@qwerty.eunet.ch  Fri Oct 20 08:23:34 2000
Return-Path: <bs@qwerty.eunet.ch>
Received: from qwerty.eunet.ch (qwerty.eunet.ch [146.228.11.110])
	by hub.freebsd.org (Postfix) with ESMTP id 16B5437B4E5
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Oct 2000 08:23:31 -0700 (PDT)
Received: (from bs@localhost)
	by qwerty.eunet.ch (8.9.3/8.9.3) id RAA53304;
	Fri, 20 Oct 2000 17:23:26 +0200 (CEST)
	(envelope-from bs)
Message-Id: <200010201523.RAA53304@qwerty.eunet.ch>
Date: Fri, 20 Oct 2000 17:23:26 +0200 (CEST)
From: Bernard Steiner <bs@qwerty.eunet.ch>
Reply-To: bs@qwerty.eunet.ch
To: FreeBSD-gnats-submit@freebsd.org
Subject: typo in ip_fw.c
X-Send-Pr-Version: 3.2

>Number:         22152
>Category:       kern
>Synopsis:       typo in ip_fw.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    luigi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 20 08:30:01 PDT 2000
>Closed-Date:    Wed Oct 25 17:26:07 PDT 2000
>Last-Modified:  Wed Oct 25 17:26:44 PDT 2000
>Originator:     Bernard Steiner
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
KPNQwest Switzerland Ltd
>Environment:

	

>Description:

	
/sys/netinet/ip_fw.c about line 175 in 4.1R, 4.1.1R
(and possibly 5.0 current ?) contain the line

SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, dyn_short_lifetime, CTLFLAG_RW,
/*  --------------------------------------^^^^^ */
    &dyn_rst_lifetime, 0, "Lifetime of dyn. rules for other situations");
/*  -----^^^ */

which I believe makes the dynamic ruleset time out pre-maturely.


>How-To-Repeat:

	

>Fix:

	

Looks like a cut-and-paste typo to me. I suggest:

SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, dyn_short_lifetime, CTLFLAG_RW,
    &dyn_short_lifetime, 0, "Lifetime of dyn. rules for other situations");
/*  -----^^^^^ */

but please do check that I am not mistaken :-)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->luigi 
Responsible-Changed-By: ru 
Responsible-Changed-When: Fri Oct 20 11:05:10 PDT 2000 
Responsible-Changed-Why:  
Over to the inventor. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22152 
State-Changed-From-To: open->closed 
State-Changed-By: luigi 
State-Changed-When: Wed Oct 25 17:26:07 PDT 2000 
State-Changed-Why:  
applied proposed fix (same as PR19511) 


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