[Bug 200169] ipfw table list uses IPv6 format for zero IPv4 addresses

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 13 12:42:31 UTC 2015


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

            Bug ID: 200169
           Summary: ipfw table list uses IPv6 format for zero IPv4
                    addresses
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: zuborg at gmail.com

`ipfw table N list` command print '::' string instead of '0.0.0.0' for some
reason. Even on systems without IPv6 support.
While `ipfw table N delete` require 0.0.0.0 to operate correctly.

Here is log of terminal:
(System without IPv6 support)
# ipfw table 1 list
# ipfw table 1 add 0.0.0.0/8
# ipfw table 1 list
::/8 0
# ipfw table 1 delete ::/8
ipfw: setsockopt(IP_FW_TABLE_XDEL): Invalid argument
# ipfw table 1 list
::/8 0
# ipfw table 1 delete 0.0.0.0/8
# ipfw table 1 list
# 

(System with IPv6 support)
# ipfw table 1 list
# ipfw table 1 add ::/8
# ipfw table 1 list
::/8 0
# ipfw table 1 add 0.0.0.0/8
# ipfw table 1 list
::/8 0
::/8 0
# ipfw table 1 delete ::/8
# ipfw table 1 list
::/8 0
# ipfw table 1 delete ::/8
ipfw: setsockopt(IP_FW_TABLE_XDEL): No such process
# ipfw table 1 list
::/8 0
# ipfw table 1 delete 0.0.0.0/8
# ipfw table 1 list
#

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


More information about the freebsd-bugs mailing list