svn commit: r304436 - in head: . sys/netinet

Slawa Olhovchenkov slw at zxy.spb.ru
Sat Aug 20 18:45:11 UTC 2016


On Sat, Aug 20, 2016 at 02:02:16PM -0400, Ryan Stone wrote:

> On Sat, Aug 20, 2016 at 1:30 PM, Slawa Olhovchenkov <slw at zxy.spb.ru> wrote:
> 
> > For host enought have [hidden] alias with broadcsts bits.
> > Anyway, don't should relay on the L2 information, you can recive L3
> > unicast addressed packets (with alien dst IP address) in L2 broadcas
> > packet.
> >
> 
> This is still handled correctly.  The new code only checks for L3 broadcast
> addresses on L2 broadcast packets, but we still check the L3 address before
> treating it as a broadcast. The problem is that I assumed that all paths
> into the IP stack would set M_BCAST, but as Bruce has pointed out there are
> cases like PPP which do not.

You also can recive this on ethernet too, IMHO, in case of /32.
Receiving L3 broadcst in L2 unicast is legitime (IMHO) and we must be
relaxed on this.


More information about the svn-src-head mailing list