[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 09:08:55 UTC 2018


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

Alexander V. Chernikov <melifaro at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |melifaro at FreeBSD.org

--- Comment #6 from Alexander V. Chernikov <melifaro at FreeBSD.org> ---
Interestingly, there seem to be an issue with the ipfw <> radix interaction.

ipfw record add process for radix-backed table:

input -> ta_prepare_add_radix() -> tei_to_sockaddr_ent()
ta_add_radix -> rnh->rnh_addaddr() == rn_addroute()

dtrace:

## good one:
  1  65028       tei_to_sockaddr_ent:return addr=255.255.255.251
mask=255.255.255.255
  1  26742                rn_addroute:entry addr=fffff8006fc26560 mask=0
rh=fffff80005046d00 elem=fffff8006fc26500
key: addr=255.255.255.251 len=8 family=2

  1  26743               rn_addroute:return ret=fffff8006fc26500
  1  64859              ta_add_radix:return return=0

## bad one:

  1  65028       tei_to_sockaddr_ent:return addr=255.255.255.255
mask=255.255.255.255
  1  26742                rn_addroute:entry addr=fffff8006fc26be0 mask=0
rh=fffff80005046d00 elem=fffff8006fc26b80
key: addr=255.255.255.255 len=8 family=2

  1  26743               rn_addroute:return ret=0
  1  64859              ta_add_radix:return return=22

## in general, radix seem to work with 255.255.255.255:
## route add -host 255.255.255.255 10.0.0.2
  1  26742                rn_addroute:entry addr=fffff80003b63ce0 mask=0
rh=fffff80003b02800 elem=fffff800320cdc30
key: addr=255.255.255.255 len=16 family=2

  1  26743               rn_addroute:return ret=fffff800320cdc30

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


More information about the freebsd-ipfw mailing list