]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: not traverse asoc trans list if non-ipv6 trans exists for ipv6_flowlabel
authorXin Long <lucien.xin@gmail.com>
Mon, 3 Sep 2018 07:47:11 +0000 (15:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 04:57:54 +0000 (21:57 -0700)
commit2a004a06600e05fdba1b42c63375cd5d4f09ec49
treef946f3f23c3302f981a109027330f44bff622716
parent8ac0eea86d532130b42ce97daefc63cc4c126162
sctp: not traverse asoc trans list if non-ipv6 trans exists for ipv6_flowlabel

When users set params.spp_address and get a trans, ipv6_flowlabel flag
should be applied into this trans. But even if this one is not an ipv6
trans, it should not go to apply it into all other transes of the asoc
but simply ignore it.

Fixes: d96ab52c5009 ("sctp: add spp_ipv6_flowlabel and spp_dscp for sctp_paddrparams")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c