Date: Mon, 28 Apr 2008 17:09:56 GMT From: Bryan Drewery <bryan@xzibition.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/123174: ipfw table add value lists as ip/uint16 instead of uint32. Message-ID: <200804281709.m3SH9usL020470@www.freebsd.org> Resent-Message-ID: <200804281720.m3SHK1nM090917@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804281709.m3SH9usL020470>