From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 28 17:20:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2163E1065676 for ; Mon, 28 Apr 2008 17:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 04F5B8FC14 for ; Mon, 28 Apr 2008 17:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3SHK1bQ090918 for ; Mon, 28 Apr 2008 17:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3SHK1nM090917; Mon, 28 Apr 2008 17:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 28 Apr 2008 17:20:01 GMT Resent-Message-Id: <200804281720.m3SHK1nM090917@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bryan Drewery Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 818A3106564A for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/123174: ipfw table add value lists as ip/uint16 instead of uint32. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2008 17:20:02 -0000 >Number: 123174 >Category: misc >Synopsis: ipfw table add value lists as ip/uint16 instead of uint32. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 28 17:20:01 UTC 2008 >Closed-Date: >Last-Modified: >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: >Unformatted: