aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_peeloff.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2010-08-28 17:59:51 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2010-08-28 17:59:51 +0000
commit20083c2eb1bd25b9fd56671c6c6463ae8b949727 (patch)
tree3c18fb8c6c88a9d89b4532f1a0b0ed84a8db9c07 /sys/netinet/sctp_peeloff.c
parent6d8fedda2ce56c34d484708c7ba4ce5019c5a620 (diff)
downloadsrc-20083c2eb1bd25b9fd56671c6c6463ae8b949727.tar.gz
src-20083c2eb1bd25b9fd56671c6c6463ae8b949727.zip
Fix the switching on/off of CMT using sysctl and socket option.
Fix the switching on/off of PF and NR-SACKs using sysctl. Add minor improvement in handling malloc failures. Improve the address checks when sending. MFC after: 4 weeks
Notes
Notes: svn path=/head/; revision=211944
Diffstat (limited to 'sys/netinet/sctp_peeloff.c')
-rw-r--r--sys/netinet/sctp_peeloff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/sctp_peeloff.c b/sys/netinet/sctp_peeloff.c
index 6f899b406caa..69d04c0be31b 100644
--- a/sys/netinet/sctp_peeloff.c
+++ b/sys/netinet/sctp_peeloff.c
@@ -112,6 +112,7 @@ sctp_do_peeloff(struct socket *head, struct socket *so, sctp_assoc_t assoc_id)
n_inp->sctp_features = inp->sctp_features;
n_inp->sctp_mobility_features = inp->sctp_mobility_features;
n_inp->sctp_frag_point = inp->sctp_frag_point;
+ n_inp->sctp_cmt_on_off = inp->sctp_cmt_on_off;
n_inp->partial_delivery_point = inp->partial_delivery_point;
n_inp->sctp_context = inp->sctp_context;
n_inp->inp_starting_point_for_iterator = NULL;
@@ -183,6 +184,7 @@ sctp_get_peeloff(struct socket *head, sctp_assoc_t assoc_id, int *error)
(SCTP_PCB_COPY_FLAGS & inp->sctp_flags));
n_inp->sctp_features = inp->sctp_features;
n_inp->sctp_frag_point = inp->sctp_frag_point;
+ n_inp->sctp_cmt_on_off = inp->sctp_cmt_on_off;
n_inp->partial_delivery_point = inp->partial_delivery_point;
n_inp->sctp_context = inp->sctp_context;
n_inp->inp_starting_point_for_iterator = NULL;