aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorIvan Skytte Jorgensen <isj-sctp@i1.dk>2006-12-13 19:34:22 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-13 19:48:29 -0500
commit6ab792f577012312a760a3a1e679ae8fae012442 (patch)
tree7d60307266f3d81afdf06ec14e646d2f7a1b4ef7 /include/net
parent882a382c3e0b432fa91672e1c2754cac3f5a6b4f (diff)
[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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sctp/structs.h4
-rw-r--r--include/net/sctp/user.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index b00d85e14fe1..8d7f26d684e5 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -275,6 +275,7 @@ struct sctp_sock {
275 __u16 default_flags; 275 __u16 default_flags;
276 __u32 default_context; 276 __u32 default_context;
277 __u32 default_timetolive; 277 __u32 default_timetolive;
278 __u32 default_rcv_context;
278 279
279 /* Heartbeat interval: The endpoint sends out a Heartbeat chunk to 280 /* Heartbeat interval: The endpoint sends out a Heartbeat chunk to
280 * the destination address every heartbeat interval. This value 281 * the destination address every heartbeat interval. This value
@@ -1657,6 +1658,9 @@ struct sctp_association {
1657 __u32 default_context; 1658 __u32 default_context;
1658 __u32 default_timetolive; 1659 __u32 default_timetolive;
1659 1660
1661 /* Default receive parameters */
1662 __u32 default_rcv_context;
1663
1660 /* This tracks outbound ssn for a given stream. */ 1664 /* This tracks outbound ssn for a given stream. */
1661 struct sctp_ssnmap *ssnmap; 1665 struct sctp_ssnmap *ssnmap;
1662 1666
diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h
index 1b7aae6cdd82..9e4a39fd129d 100644
--- a/include/net/sctp/user.h
+++ b/include/net/sctp/user.h
@@ -95,6 +95,8 @@ enum sctp_optname {
95#define SCTP_GET_PEER_ADDR_INFO SCTP_GET_PEER_ADDR_INFO 95#define SCTP_GET_PEER_ADDR_INFO SCTP_GET_PEER_ADDR_INFO
96 SCTP_DELAYED_ACK_TIME, 96 SCTP_DELAYED_ACK_TIME,
97#define SCTP_DELAYED_ACK_TIME SCTP_DELAYED_ACK_TIME 97#define SCTP_DELAYED_ACK_TIME SCTP_DELAYED_ACK_TIME
98 SCTP_CONTEXT, /* Receive Context */
99#define SCTP_CONTEXT SCTP_CONTEXT
98 100
99 /* Internal Socket Options. Some of the sctp library functions are 101 /* Internal Socket Options. Some of the sctp library functions are
100 * implemented using these socket options. 102 * implemented using these socket options.