sctp: make ecn flag per netns and endpoint
This patch is to add ecn flag for both netns_sctp and sctp_endpoint, net->sctp.ecn_enable is set 1 by default, and ep->ecn_enable will be initialized with net->sctp.ecn_enable. asoc->peer.ecn_capable will be set during negotiation only when ep->ecn_enable is set on both sides. Signed-off-by:Xin Long <lucien.xin@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/netns/sctp.h 3 additions, 0 deletionsinclude/net/netns/sctp.h
- include/net/sctp/structs.h 2 additions, 1 deletioninclude/net/sctp/structs.h
- net/sctp/endpointola.c 1 addition, 0 deletionsnet/sctp/endpointola.c
- net/sctp/protocol.c 3 additions, 0 deletionsnet/sctp/protocol.c
- net/sctp/sm_make_chunk.c 12 additions, 4 deletionsnet/sctp/sm_make_chunk.c
Loading
Please register or sign in to comment