sctp: set the value of flowi6_oif to sk_bound_dev_if to make sctp_v6_get_dst to find...
authorZheng Li <james.z.li@ericsson.com>
Thu, 6 Jul 2017 07:00:09 +0000 (15:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jul 2017 10:39:54 +0000 (11:39 +0100)
commit25e7f2de96588890536c4032b703e4568495b212
tree396d45a4af9812e091bc06fef267e6ffb2d3d5db
parent5a3b886c3cc5de1b9ec618bf27e1b31c6624f3ca
sctp: set the value of flowi6_oif to sk_bound_dev_if to make sctp_v6_get_dst to find the correct route entry.

if there are several same route entries with different outgoing net device,
application's socket specifies the oif through setsockopt with
SO_BINDTODEVICE, sctpv6 should choose the route entry whose outgoing net
device is the oif which was specified by socket, set the value of
flowi6_oif to sk->sk_bound_dev_if to make sctp_v6_get_dst to find the
correct route entry.

Signed-off-by: Zheng Li <james.z.li@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/ipv6.c