From nobody@FreeBSD.org  Mon Apr 28 17:10:32 2008
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 818A3106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Apr 2008 17:10:32 +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 7717F8FC20
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Apr 2008 17:10:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3SH9uu7020471
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Apr 2008 17:09:56 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m3SH9usL020470;
	Mon, 28 Apr 2008 17:09:56 GMT
	(envelope-from nobody)
Message-Id: <200804281709.m3SH9usL020470@www.freebsd.org>
Date: Mon, 28 Apr 2008 17:09:56 GMT
From: Bryan Drewery <bryan@xzibition.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipfw table add value lists as ip/uint16 instead of uint32.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         123174
>Category:       kern
>Synopsis:       [ipfw] table add value lists as ip/uint16 instead of uint32.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ipfw
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 17:20:01 UTC 2008
>Closed-Date:    Mon Apr 28 12:17:48 PDT 2008
>Last-Modified:  Mon Apr 28 12:17:48 PDT 2008
>Originator:     Bryan Drewery
>Release:        6.3,7.0
>Organization:
Xzibition Data Communications
>Environment:
FreeBSD wrath.xzibition.com 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #2: Sat Apr 26 11:29:02 EDT 2008     root@wrath.xzibition.com:/usr/obj/usr/src/sys/WRATH  i386

FreeBSD sophie.xzibition.com 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Wed Feb 20 10:07:43 CST 2008     root@sophie.xzibition.com:/usr/obj/usr/src/sys/SOPHIE  i386

FreeBSD elmo.xzibition.com 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Tue Mar 25 11:36:52 PDT 2008     root@elmo.xzibition.com:/usr/obj/usr/src/sys/ELMO  i386

>Description:
ipfw table [number] [add] [ip] [value]
the value should be 32-bit unsigned int, but after going over 65535 (uint16), the value lists as an ip in ipfw table [n] list.
>How-To-Repeat:
$ ipfw table 1 add 1.2.3.4 65535
$ ipfw table 1 list
1.2.3.4/32 65535

$ ipfw table 1 add 1.2.3.4 65536
$ ipfw table 1 list
1.2.3.4/32 0.1.0.0

$ ipfw table 1 add 1.2.3.4 `date +%s`
$ ipfw table 1 list
1.2.3.4/32 72.22.4.131

**
expected:
1.2.3.4/32 1209402525
**

Test scripts:
ipfw table 1 delete 1.2.3.4; ipfw table 1 add 1.2.3.4 65535; ipfw table 1 list|grep 1.2.3.4
ipfw table 1 delete 1.2.3.4; ipfw table 1 add 1.2.3.4 65536; ipfw table 1 list|grep 1.2.3.4
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ipfw 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Apr 28 19:10:46 UTC 2008 
Responsible-Changed-Why:  
Over to maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123174 
State-Changed-From-To: open->closed 
State-Changed-By: julian 
State-Changed-When: Mon Apr 28 12:15:05 PDT 2008 
State-Changed-Why:  
fixed in all affected branches post release. 
dupplicate of another bug (also closed) (I forget the number) 

the change came as part of the change allowing: 
ipfw table 1 add 1.2.3.4 5.6.7.8 
ipfw add 100 fwd tablearg ip from table(1) to any 



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