misc/123174: ipfw table add value lists as ip/uint16 instead of
uint32.
Bryan Drewery
bryan at xzibition.com
Mon Apr 28 17:20:02 UTC 2008
>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 at 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 at 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 at 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:
More information about the freebsd-bugs
mailing list