]> git.baikalelectronics.ru Git - kernel.git/commit
net: vrf: Add support for sends to local broadcast address
authorDavid Ahern <dsahern@gmail.com>
Thu, 25 Jan 2018 03:37:37 +0000 (19:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jan 2018 02:51:03 +0000 (21:51 -0500)
commit59c691f5099664400b7642620282e8114703d03f
tree39cfbe673f5af3396ae5794f2463d6c3475137f5
parentd9d191e57bae2aeae7422eacc941ca1adc42ed2c
net: vrf: Add support for sends to local broadcast address

Sukumar reported that sends to the local broadcast address
(255.255.255.255) are broken. Check for the address in vrf driver
and do not redirect to the VRF device - similar to multicast
packets.

With this change sockets can use SO_BINDTODEVICE to specify an
egress interface and receive responses. Note: the egress interface
can not be a VRF device but needs to be the enslaved device.

https://bugzilla.kernel.org/show_bug.cgi?id=198521

Reported-by: Sukumar Gopalakrishnan <sukumarg1973@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c