[SCTP]: Add support for SCTP_CONTEXT socket option.
Signed-off-by: Ivan Skytte Jorgensen <isj-sctp@i1.dk> Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
882a382c3e
commit
6ab792f577
@@ -275,6 +275,7 @@ struct sctp_sock {
|
||||
__u16 default_flags;
|
||||
__u32 default_context;
|
||||
__u32 default_timetolive;
|
||||
__u32 default_rcv_context;
|
||||
|
||||
/* Heartbeat interval: The endpoint sends out a Heartbeat chunk to
|
||||
* the destination address every heartbeat interval. This value
|
||||
@@ -1657,6 +1658,9 @@ struct sctp_association {
|
||||
__u32 default_context;
|
||||
__u32 default_timetolive;
|
||||
|
||||
/* Default receive parameters */
|
||||
__u32 default_rcv_context;
|
||||
|
||||
/* This tracks outbound ssn for a given stream. */
|
||||
struct sctp_ssnmap *ssnmap;
|
||||
|
||||
|
@@ -95,6 +95,8 @@ enum sctp_optname {
|
||||
#define SCTP_GET_PEER_ADDR_INFO SCTP_GET_PEER_ADDR_INFO
|
||||
SCTP_DELAYED_ACK_TIME,
|
||||
#define SCTP_DELAYED_ACK_TIME SCTP_DELAYED_ACK_TIME
|
||||
SCTP_CONTEXT, /* Receive Context */
|
||||
#define SCTP_CONTEXT SCTP_CONTEXT
|
||||
|
||||
/* Internal Socket Options. Some of the sctp library functions are
|
||||
* implemented using these socket options.
|
||||
|
Reference in New Issue
Block a user