sctp: verify the bind address with the tb_id from l3mdev
authorXin Long <lucien.xin@gmail.com>
Wed, 16 Nov 2022 20:01:16 +0000 (15:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2022 11:42:54 +0000 (11:42 +0000)
commit26943aefa8704ca7871c34a2d1b2b2a418372666
treee25463d966d2b315353725a3cfa446ac741e6f35
parent0b6ffefbb018462856dd8ee22735f8c9aecb2c80
sctp: verify the bind address with the tb_id from l3mdev

After binding to a l3mdev, it should use the route table from the
corresponding VRF to verify the addr when binding to an address.

Note ipv6 doesn't need it, as binding to ipv6 address does not
verify the addr with route lookup.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/protocol.c