aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/associola.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r--net/sctp/associola.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index 39c3821b7d3d..1f05b942564e 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -112,6 +112,7 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a
112 asoc->cookie_life.tv_usec = (sp->assocparams.sasoc_cookie_life % 1000) 112 asoc->cookie_life.tv_usec = (sp->assocparams.sasoc_cookie_life % 1000)
113 * 1000; 113 * 1000;
114 asoc->frag_point = 0; 114 asoc->frag_point = 0;
115 asoc->user_frag = sp->user_frag;
115 116
116 /* Set the association max_retrans and RTO values from the 117 /* Set the association max_retrans and RTO values from the
117 * socket values. 118 * socket values.
@@ -674,7 +675,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc,
674 "%d\n", asoc, asoc->pathmtu); 675 "%d\n", asoc, asoc->pathmtu);
675 peer->pmtu_pending = 0; 676 peer->pmtu_pending = 0;
676 677
677 asoc->frag_point = sctp_frag_point(sp, asoc->pathmtu); 678 asoc->frag_point = sctp_frag_point(asoc, asoc->pathmtu);
678 679
679 /* The asoc->peer.port might not be meaningful yet, but 680 /* The asoc->peer.port might not be meaningful yet, but
680 * initialize the packet structure anyway. 681 * initialize the packet structure anyway.
@@ -1330,9 +1331,8 @@ void sctp_assoc_sync_pmtu(struct sctp_association *asoc)
1330 } 1331 }
1331 1332
1332 if (pmtu) { 1333 if (pmtu) {
1333 struct sctp_sock *sp = sctp_sk(asoc->base.sk);
1334 asoc->pathmtu = pmtu; 1334 asoc->pathmtu = pmtu;
1335 asoc->frag_point = sctp_frag_point(sp, pmtu); 1335 asoc->frag_point = sctp_frag_point(asoc, pmtu);
1336 } 1336 }
1337 1337
1338 SCTP_DEBUG_PRINTK("%s: asoc:%p, pmtu:%d, frag_point:%d\n", 1338 SCTP_DEBUG_PRINTK("%s: asoc:%p, pmtu:%d, frag_point:%d\n",