aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2018-11-12 05:27:17 -0500
committerDavid S. Miller <davem@davemloft.net>2018-11-12 12:09:51 -0500
commit6ba84574026792ce33a40c7da721dea36d0f3973 (patch)
treea6b2fb0d82b8485b7fe53e52ba2d136039cba76c /include/net/sctp
parent76c6d988aeb3c15d57ea0c245a3b5f27802c1fbe (diff)
sctp: process sk_reuseport in sctp_get_port_local
When socks' sk_reuseport is set, the same port and address are allowed to be bound into these socks who have the same uid. Note that the difference from sk_reuse is that it allows multiple socks to listen on the same port and address. Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r--include/net/sctp/structs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 15d017f33a46..af9d494120ba 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -96,7 +96,9 @@ struct sctp_stream;
96 96
97struct sctp_bind_bucket { 97struct sctp_bind_bucket {
98 unsigned short port; 98 unsigned short port;
99 unsigned short fastreuse; 99 signed char fastreuse;
100 signed char fastreuseport;
101 kuid_t fastuid;
100 struct hlist_node node; 102 struct hlist_node node;
101 struct hlist_head owner; 103 struct hlist_head owner;
102 struct net *net; 104 struct net *net;