aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAndrei Pelinescu-Onciul <andrei@iptel.org>2009-11-23 15:53:57 -0500
committerVlad Yasevich <vladislav.yasevich@hp.com>2009-11-23 15:53:57 -0500
commit37051f73862d15862aecc08b887b2884137af327 (patch)
treec62999e8365a14ecb5f87a2921bc964bc609b915 /net
parent90f2f5318b3a5b0898fef0fec9b91376c7de7a2c (diff)
sctp: allow setting path_maxrxt independent of SPP_PMTUD_ENABLE
Since draft-ietf-tsvwg-sctpsocket-15.txt, setting the SPP_MTUD_ENABLE flag when changing pathmaxrxt via the SCTP_PEER_ADDR_PARAMS setsockopt is not required any longer. Signed-off-by: Andrei Pelinescu-Onciul <andrei@iptel.org> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sctp/socket.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 66b1f02b17ba..a4577a75c6c0 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -2311,11 +2311,10 @@ static int sctp_apply_peer_addr_params(struct sctp_paddrparams *params,
2311 } 2311 }
2312 } 2312 }
2313 2313
2314 /* Note that unless the spp_flag is set to SPP_PMTUD_ENABLE the value 2314 /* Note that a value of zero indicates the current setting should be
2315 * of this field is ignored. Note also that a value of zero 2315 left unchanged.
2316 * indicates the current setting should be left unchanged.
2317 */ 2316 */
2318 if ((params->spp_flags & SPP_PMTUD_ENABLE) && params->spp_pathmaxrxt) { 2317 if (params->spp_pathmaxrxt) {
2319 if (trans) { 2318 if (trans) {
2320 trans->pathmaxrxt = params->spp_pathmaxrxt; 2319 trans->pathmaxrxt = params->spp_pathmaxrxt;
2321 } else if (asoc) { 2320 } else if (asoc) {