sctp: add SCTP_PR_SUPPORTED on sctp sockopt
According to section 4.5 of rfc7496, prsctp_enable should be per asoc. We will add prsctp_enable to both asoc and ep, and replace the places where it used net.sctp->prsctp_enable with asoc->prsctp_enable. ep->prsctp_enable will be initialized with net.sctp->prsctp_enable, and asoc->prsctp_enable will be initialized with ep->prsctp_enable. We can also modify it's value through sockopt SCTP_PR_SUPPORTED. Signed-off-by:Xin Long <lucien.xin@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/sctp/structs.h 4 additions, 2 deletionsinclude/net/sctp/structs.h
- include/uapi/linux/sctp.h 1 addition, 0 deletionsinclude/uapi/linux/sctp.h
- net/sctp/associola.c 1 addition, 0 deletionsnet/sctp/associola.c
- net/sctp/endpointola.c 1 addition, 0 deletionsnet/sctp/endpointola.c
- net/sctp/sm_make_chunk.c 6 additions, 6 deletionsnet/sctp/sm_make_chunk.c
- net/sctp/socket.c 80 additions, 0 deletionsnet/sctp/socket.c
Loading
Please register or sign in to comment