Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2018 09:08:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ipfw@FreeBSD.org
Subject:   [Bug 226688] [ipfw] rejects adding 255.255.255.255 to a table
Message-ID:  <bug-226688-7515-bwuLqwetWo@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-226688-7515@https.bugs.freebsd.org/bugzilla/>
References:  <bug-226688-7515@https.bugs.freebsd.org/bugzilla/>

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

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

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

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

--- Comment #6 from Alexander V. Chernikov <melifaro@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.


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