[Bug 226688] [ipfw] rejects adding 255.255.255.255 to a table

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 18 01:34:38 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226688

            Bug ID: 226688
           Summary: [ipfw] rejects adding 255.255.255.255 to a table
           Product: Base System
           Version: 11.1-RELEASE
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: de0u+fbbugs at andrew.cmu.edu

Adding 255.255.255.255/32 to an ipfw table results in "Invalid argument".

This is a freshly-installed 11.1-RELEASE system:

FreeBSD kiki0 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 04:10:47
UTC 2017     root at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386

Repeat by:

**********************************************************************

root at kiki0:/usr/local/etc # ipfw /dev/stdin
table 30 create type addr algo addr:radix
table 30 add 255.255.255.254/32
added: 255.255.255.254/32 0
table 30 add 255.255.255.255/32
error: 255.255.255.255/32 0
Line 3: Adding record failed: Invalid argument
root at kiki0:/usr/local/etc # ipfw /dev/stdin
table 30 list
--- table(30), set(0) ---
255.255.255.254/32 0
table 30 detail
--- table(30), set(0) ---
 kindex: 3, type: addr
 references: 0, valtype: legacy
 algorithm: addr:radix
 items: 1, size: 416
 IPv4 algorithm radix info
  items: 1 itemsize: 72
 IPv6 algorithm radix info
  items: 0 itemsize: 76
table 30 destroy
^D
root at kiki0:/usr/local/etc # 

**********************************************************************

See also bug #180731 -- it's hard not to suspect that there
is a tendency toward confusion between -1 as an error code and
255.255.255.255, which has the same bit pattern (at least on
32-bit machines).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list