diff options
author | tuexen <tuexen@FreeBSD.org> | 2011-02-03 19:59:00 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2011-02-03 19:59:00 +0000 |
commit | 8c15a38b6340497a544a77e32996b7209f2e54eb (patch) | |
tree | fb56bb5638afcde827deb48d5b6094fd85ae8d22 /sys/netinet/sctp_peeloff.c | |
parent | 45cdff3dd8dfb77457ff6dd2d900658a98f5c723 (diff) | |
download | FreeBSD-src-8c15a38b6340497a544a77e32996b7209f2e54eb.zip FreeBSD-src-8c15a38b6340497a544a77e32996b7209f2e54eb.tar.gz |
Make sure that changing the ECN sysctl does not affect
exisiting associations and endpoints.
MFC after: 3 months.
Diffstat (limited to 'sys/netinet/sctp_peeloff.c')
-rw-r--r-- | sys/netinet/sctp_peeloff.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/sctp_peeloff.c b/sys/netinet/sctp_peeloff.c index 69d04c0..b857940 100644 --- a/sys/netinet/sctp_peeloff.c +++ b/sys/netinet/sctp_peeloff.c @@ -1,5 +1,8 @@ /*- * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2008-2011, by Randall Stewart, rrs@lakerest.net and + * Michael Tuexen, tuexen@fh-muenster.de + * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -113,6 +116,7 @@ sctp_do_peeloff(struct socket *head, struct socket *so, sctp_assoc_t assoc_id) 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->sctp_ecn_enable = inp->sctp_ecn_enable; n_inp->partial_delivery_point = inp->partial_delivery_point; n_inp->sctp_context = inp->sctp_context; n_inp->inp_starting_point_for_iterator = NULL; @@ -185,6 +189,7 @@ sctp_get_peeloff(struct socket *head, sctp_assoc_t assoc_id, int *error) 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->sctp_ecn_enable = inp->sctp_ecn_enable; n_inp->partial_delivery_point = inp->partial_delivery_point; n_inp->sctp_context = inp->sctp_context; n_inp->inp_starting_point_for_iterator = NULL; |