diff options
author | Xin Long <lucien.xin@gmail.com> | 2018-11-18 16:08:51 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-19 12:25:43 -0800 |
commit | 2cc0eeb67636e0339ad7b6cdfa305f63983642af (patch) | |
tree | 52dd65d8f7d0efc982b5ee829c5eabc9c0d8ef90 /include/net/sctp/structs.h | |
parent | f2be6d710d25be7d8d13f49f713d69dea9c71d57 (diff) | |
download | linux-2cc0eeb67636e0339ad7b6cdfa305f63983642af.tar.bz2 |
sctp: define subscribe in sctp_sock as __u16
The member subscribe in sctp_sock is used to indicate to which of
the events it is subscribed, more like a group of flags. So it's
better to be defined as __u16 (2 bytpes), instead of struct
sctp_event_subscribe (13 bytes).
Note that sctp_event_subscribe is an UAPI struct, used on sockopt
calls, and thus it will not be removed. This patch only changes
the internal storage of the flags.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/structs.h')
-rw-r--r-- | include/net/sctp/structs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index af9d494120ba..bc7808aa2760 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h @@ -217,7 +217,7 @@ struct sctp_sock { * These two structures must be grouped together for the usercopy * whitelist region. */ - struct sctp_event_subscribe subscribe; + __u16 subscribe; struct sctp_initmsg initmsg; int user_frag; |