diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2007-03-23 11:32:00 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-25 22:28:00 -0700 |
commit | d49d91d79a8dc5e85108a5ae1c8eef23dec135c1 (patch) | |
tree | e98b53a69b310128a03a06fcc1dd9f94f7aa34b2 /include/net/sctp | |
parent | b6e1331f3ce25a56edb956054eaf8011654686cb (diff) | |
download | kernel_samsung_aries-d49d91d79a8dc5e85108a5ae1c8eef23dec135c1.zip kernel_samsung_aries-d49d91d79a8dc5e85108a5ae1c8eef23dec135c1.tar.gz kernel_samsung_aries-d49d91d79a8dc5e85108a5ae1c8eef23dec135c1.tar.bz2 |
[SCTP]: Implement SCTP_PARTIAL_DELIVERY_POINT option.
This option induces partial delivery to run as soon
as the specified amount of data has been accumulated on
the association. However, we give preference to fully
reassembled messages over PD messages. In any case,
window and buffer is freed up.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@.hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/structs.h | 1 | ||||
-rw-r--r-- | include/net/sctp/user.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index fe7f5ae..37b4a24 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h @@ -307,6 +307,7 @@ struct sctp_sock { __u8 v4mapped; __u8 frag_interleave; __u32 adaptation_ind; + __u32 pd_point; atomic_t pd_mode; /* Receive to here while partial delivery is in effect. */ diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h index e773160..9a83527 100644 --- a/include/net/sctp/user.h +++ b/include/net/sctp/user.h @@ -99,6 +99,8 @@ enum sctp_optname { #define SCTP_CONTEXT SCTP_CONTEXT SCTP_FRAGMENT_INTERLEAVE, #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 /* Internal Socket Options. Some of the sctp library functions are * implemented using these socket options. |