Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2018 01:34:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 226688] [ipfw] rejects adding 255.255.255.255 to a table
Message-ID:  <bug-226688-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help

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@FreeBSD.org
          Reporter: de0u+fbbugs@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@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386

Repeat by:

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

root@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@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@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226688-8>