[SCTP]: Implement SCTP_MAX_BURST socket option.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a5a35e7675
commit
703315712c
@@ -283,7 +283,7 @@ enum { SCTP_MAX_GABS = 16 };
|
||||
#define SCTP_RTO_BETA 2 /* 1/4 when converted to right shifts. */
|
||||
|
||||
/* Maximum number of new data packets that can be sent in a burst. */
|
||||
#define SCTP_MAX_BURST 4
|
||||
#define SCTP_DEFAULT_MAX_BURST 4
|
||||
|
||||
#define SCTP_CLOCK_GRANULARITY 1 /* 1 jiffy */
|
||||
|
||||
|
||||
@@ -276,6 +276,7 @@ struct sctp_sock {
|
||||
__u32 default_context;
|
||||
__u32 default_timetolive;
|
||||
__u32 default_rcv_context;
|
||||
int max_burst;
|
||||
|
||||
/* Heartbeat interval: The endpoint sends out a Heartbeat chunk to
|
||||
* the destination address every heartbeat interval. This value
|
||||
|
||||
@@ -101,6 +101,8 @@ enum sctp_optname {
|
||||
#define SCTP_FRAGMENT_INTERLEAVE SCTP_FRAGMENT_INTERLEAVE
|
||||
SCTP_PARTIAL_DELIVERY_POINT, /* Set/Get partial delivery point */
|
||||
#define SCTP_PARTIAL_DELIVERY_POINT SCTP_PARTIAL_DELIVERY_POINT
|
||||
SCTP_MAX_BURST, /* Set/Get max burst */
|
||||
#define SCTP_MAX_BURST SCTP_MAX_BURST
|
||||
|
||||
/* Internal Socket Options. Some of the sctp library functions are
|
||||
* implemented using these socket options.
|
||||
|
||||
Reference in New Issue
Block a user