1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
30
31#include <linux/slab.h>
32#include <linux/types.h>
33#include <linux/random.h>
34#include <net/sctp/sctp.h>
35#include <net/sctp/sm.h>
36
37
38
39
40static struct sctp_transport *sctp_transport_init(struct net *net,
41 struct sctp_transport *peer,
42 const union sctp_addr *addr,
43 gfp_t gfp)
44{
45
46 peer->af_specific = sctp_get_af_specific(addr->sa.sa_family);
47 memcpy(&peer->ipaddr, addr, peer->af_specific->sockaddr_len);
48 memset(&peer->saddr, 0, sizeof(union sctp_addr));
49
50 peer->sack_generation = 0;
51
52
53
54
55
56
57
58 peer->rto = msecs_to_jiffies(net->sctp.rto_initial);
59
60 peer->last_time_heard = 0;
61 peer->last_time_ecne_reduced = jiffies;
62
63 peer->param_flags = SPP_HB_DISABLE |
64 SPP_PMTUD_ENABLE |
65 SPP_SACKDELAY_ENABLE;
66
67
68 peer->pathmaxrxt = net->sctp.max_retrans_path;
69 peer->pf_retrans = net->sctp.pf_retrans;
70
71 INIT_LIST_HEAD(&peer->transmitted);
72 INIT_LIST_HEAD(&peer->send_ready);
73 INIT_LIST_HEAD(&peer->transports);
74
75 timer_setup(&peer->T3_rtx_timer, sctp_generate_t3_rtx_event, 0);
76 timer_setup(&peer->hb_timer, sctp_generate_heartbeat_event, 0);
77 timer_setup(&peer->reconf_timer, sctp_generate_reconf_event, 0);
78 timer_setup(&peer->probe_timer, sctp_generate_probe_event, 0);
79 timer_setup(&peer->proto_unreach_timer,
80 sctp_generate_proto_unreach_event, 0);
81
82
83 get_random_bytes(&peer->hb_nonce, sizeof(peer->hb_nonce));
84
85 refcount_set(&peer->refcnt, 1);
86
87 return peer;
88}
89
90
91struct sctp_transport *sctp_transport_new(struct net *net,
92 const union sctp_addr *addr,
93 gfp_t gfp)
94{
95 struct sctp_transport *transport;
96
97 transport = kzalloc(sizeof(*transport), gfp);
98 if (!transport)
99 goto fail;
100
101 if (!sctp_transport_init(net, transport, addr, gfp))
102 goto fail_init;
103
104 SCTP_DBG_OBJCNT_INC(transport);
105
106 return transport;
107
108fail_init:
109 kfree(transport);
110
111fail:
112 return NULL;
113}
114
115
116
117
118void sctp_transport_free(struct sctp_transport *transport)
119{
120
121 if (del_timer(&transport->hb_timer))
122 sctp_transport_put(transport);
123
124
125
126
127
128
129 if (del_timer(&transport->T3_rtx_timer))
130 sctp_transport_put(transport);
131
132 if (del_timer(&transport->reconf_timer))
133 sctp_transport_put(transport);
134
135 if (del_timer(&transport->probe_timer))
136 sctp_transport_put(transport);
137
138
139 if (del_timer(&transport->proto_unreach_timer))
140 sctp_transport_put(transport);
141
142 sctp_transport_put(transport);
143}
144
145static void sctp_transport_destroy_rcu(struct rcu_head *head)
146{
147 struct sctp_transport *transport;
148
149 transport = container_of(head, struct sctp_transport, rcu);
150
151 dst_release(transport->dst);
152 kfree(transport);
153 SCTP_DBG_OBJCNT_DEC(transport);
154}
155
156
157
158
159static void sctp_transport_destroy(struct sctp_transport *transport)
160{
161 if (unlikely(refcount_read(&transport->refcnt))) {
162 WARN(1, "Attempt to destroy undead transport %p!\n", transport);
163 return;
164 }
165
166 sctp_packet_free(&transport->packet);
167
168 if (transport->asoc)
169 sctp_association_put(transport->asoc);
170
171 call_rcu(&transport->rcu, sctp_transport_destroy_rcu);
172}
173
174
175
176
177void sctp_transport_reset_t3_rtx(struct sctp_transport *transport)
178{
179
180
181
182
183
184
185
186
187 if (!timer_pending(&transport->T3_rtx_timer))
188 if (!mod_timer(&transport->T3_rtx_timer,
189 jiffies + transport->rto))
190 sctp_transport_hold(transport);
191}
192
193void sctp_transport_reset_hb_timer(struct sctp_transport *transport)
194{
195 unsigned long expires;
196
197
198 expires = jiffies + sctp_transport_timeout(transport);
199 if ((time_before(transport->hb_timer.expires, expires) ||
200 !timer_pending(&transport->hb_timer)) &&
201 !mod_timer(&transport->hb_timer,
202 expires + prandom_u32_max(transport->rto)))
203 sctp_transport_hold(transport);
204}
205
206void sctp_transport_reset_reconf_timer(struct sctp_transport *transport)
207{
208 if (!timer_pending(&transport->reconf_timer))
209 if (!mod_timer(&transport->reconf_timer,
210 jiffies + transport->rto))
211 sctp_transport_hold(transport);
212}
213
214void sctp_transport_reset_probe_timer(struct sctp_transport *transport)
215{
216 if (timer_pending(&transport->probe_timer))
217 return;
218 if (!mod_timer(&transport->probe_timer,
219 jiffies + transport->probe_interval))
220 sctp_transport_hold(transport);
221}
222
223
224
225
226
227void sctp_transport_set_owner(struct sctp_transport *transport,
228 struct sctp_association *asoc)
229{
230 transport->asoc = asoc;
231 sctp_association_hold(asoc);
232}
233
234
235void sctp_transport_pmtu(struct sctp_transport *transport, struct sock *sk)
236{
237
238 if (!transport->dst || transport->dst->obsolete) {
239 sctp_transport_dst_release(transport);
240 transport->af_specific->get_dst(transport, &transport->saddr,
241 &transport->fl, sk);
242 }
243
244 if (transport->param_flags & SPP_PMTUD_DISABLE) {
245 struct sctp_association *asoc = transport->asoc;
246
247 if (!transport->pathmtu && asoc && asoc->pathmtu)
248 transport->pathmtu = asoc->pathmtu;
249 if (transport->pathmtu)
250 return;
251 }
252
253 if (transport->dst)
254 transport->pathmtu = sctp_dst_mtu(transport->dst);
255 else
256 transport->pathmtu = SCTP_DEFAULT_MAXSEGMENT;
257
258 sctp_transport_pl_update(transport);
259}
260
261bool sctp_transport_pl_send(struct sctp_transport *t)
262{
263 if (t->pl.probe_count < SCTP_MAX_PROBES)
264 goto out;
265
266 t->pl.last_rtx_chunks = t->asoc->rtx_data_chunks;
267 t->pl.probe_count = 0;
268 if (t->pl.state == SCTP_PL_BASE) {
269 if (t->pl.probe_size == SCTP_BASE_PLPMTU) {
270 t->pl.state = SCTP_PL_ERROR;
271
272 t->pl.pmtu = SCTP_MIN_PLPMTU;
273 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t);
274 sctp_assoc_sync_pmtu(t->asoc);
275 }
276 } else if (t->pl.state == SCTP_PL_SEARCH) {
277 if (t->pl.pmtu == t->pl.probe_size) {
278 t->pl.state = SCTP_PL_BASE;
279 t->pl.probe_size = SCTP_BASE_PLPMTU;
280 t->pl.probe_high = 0;
281
282 t->pl.pmtu = SCTP_BASE_PLPMTU;
283 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t);
284 sctp_assoc_sync_pmtu(t->asoc);
285 } else {
286 t->pl.probe_high = t->pl.probe_size;
287 t->pl.probe_size = t->pl.pmtu;
288 }
289 } else if (t->pl.state == SCTP_PL_COMPLETE) {
290 if (t->pl.pmtu == t->pl.probe_size) {
291 t->pl.state = SCTP_PL_BASE;
292 t->pl.probe_size = SCTP_BASE_PLPMTU;
293
294 t->pl.pmtu = SCTP_BASE_PLPMTU;
295 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t);
296 sctp_assoc_sync_pmtu(t->asoc);
297 }
298 }
299
300out:
301 if (t->pl.state == SCTP_PL_COMPLETE && t->pl.raise_count < 30 &&
302 !t->pl.probe_count && t->pl.last_rtx_chunks == t->asoc->rtx_data_chunks) {
303 t->pl.raise_count++;
304 return false;
305 }
306
307 pr_debug("%s: PLPMTUD: transport: %p, state: %d, pmtu: %d, size: %d, high: %d\n",
308 __func__, t, t->pl.state, t->pl.pmtu, t->pl.probe_size, t->pl.probe_high);
309
310 t->pl.probe_count++;
311 return true;
312}
313
314bool sctp_transport_pl_recv(struct sctp_transport *t)
315{
316 pr_debug("%s: PLPMTUD: transport: %p, state: %d, pmtu: %d, size: %d, high: %d\n",
317 __func__, t, t->pl.state, t->pl.pmtu, t->pl.probe_size, t->pl.probe_high);
318
319 t->pl.last_rtx_chunks = t->asoc->rtx_data_chunks;
320 t->pl.pmtu = t->pl.probe_size;
321 t->pl.probe_count = 0;
322 if (t->pl.state == SCTP_PL_BASE) {
323 t->pl.state = SCTP_PL_SEARCH;
324 t->pl.probe_size += SCTP_PL_BIG_STEP;
325 } else if (t->pl.state == SCTP_PL_ERROR) {
326 t->pl.state = SCTP_PL_SEARCH;
327
328 t->pl.pmtu = t->pl.probe_size;
329 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t);
330 sctp_assoc_sync_pmtu(t->asoc);
331 t->pl.probe_size += SCTP_PL_BIG_STEP;
332 } else if (t->pl.state == SCTP_PL_SEARCH) {
333 if (!t->pl.probe_high) {
334 t->pl.probe_size = min(t->pl.probe_size + SCTP_PL_BIG_STEP,
335 SCTP_MAX_PLPMTU);
336 return false;
337 }
338 t->pl.probe_size += SCTP_PL_MIN_STEP;
339 if (t->pl.probe_size >= t->pl.probe_high) {
340 t->pl.probe_high = 0;
341 t->pl.raise_count = 0;
342 t->pl.state = SCTP_PL_COMPLETE;
343
344 t->pl.probe_size = t->pl.pmtu;
345 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t);
346 sctp_assoc_sync_pmtu(t->asoc);
347 }
348 } else if (t->pl.state == SCTP_PL_COMPLETE && t->pl.raise_count == 30) {
349
350 t->pl.state = SCTP_PL_SEARCH;
351 t->pl.probe_size += SCTP_PL_MIN_STEP;
352 }
353
354 return t->pl.state == SCTP_PL_COMPLETE;
355}
356
357static bool sctp_transport_pl_toobig(struct sctp_transport *t, u32 pmtu)
358{
359 pr_debug("%s: PLPMTUD: transport: %p, state: %d, pmtu: %d, size: %d, ptb: %d\n",
360 __func__, t, t->pl.state, t->pl.pmtu, t->pl.probe_size, pmtu);
361
362 if (pmtu < SCTP_MIN_PLPMTU || pmtu >= t->pl.probe_size)
363 return false;
364
365 if (t->pl.state == SCTP_PL_BASE) {
366 if (pmtu >= SCTP_MIN_PLPMTU && pmtu < SCTP_BASE_PLPMTU) {
367 t->pl.state = SCTP_PL_ERROR;
368
369 t->pl.pmtu = SCTP_MIN_PLPMTU;
370 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t);
371 }
372 } else if (t->pl.state == SCTP_PL_SEARCH) {
373 if (pmtu >= SCTP_BASE_PLPMTU && pmtu < t->pl.pmtu) {
374 t->pl.state = SCTP_PL_BASE;
375 t->pl.probe_size = SCTP_BASE_PLPMTU;
376 t->pl.probe_count = 0;
377
378 t->pl.probe_high = 0;
379 t->pl.pmtu = SCTP_BASE_PLPMTU;
380 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t);
381 } else if (pmtu > t->pl.pmtu && pmtu < t->pl.probe_size) {
382 t->pl.probe_size = pmtu;
383 t->pl.probe_count = 0;
384
385 return false;
386 }
387 } else if (t->pl.state == SCTP_PL_COMPLETE) {
388 if (pmtu >= SCTP_BASE_PLPMTU && pmtu < t->pl.pmtu) {
389 t->pl.state = SCTP_PL_BASE;
390 t->pl.probe_size = SCTP_BASE_PLPMTU;
391 t->pl.probe_count = 0;
392
393 t->pl.probe_high = 0;
394 t->pl.pmtu = SCTP_BASE_PLPMTU;
395 t->pathmtu = t->pl.pmtu + sctp_transport_pl_hlen(t);
396 }
397 }
398
399 return true;
400}
401
402bool sctp_transport_update_pmtu(struct sctp_transport *t, u32 pmtu)
403{
404 struct sock *sk = t->asoc->base.sk;
405 struct dst_entry *dst;
406 bool change = true;
407
408 if (unlikely(pmtu < SCTP_DEFAULT_MINSEGMENT)) {
409 pr_warn_ratelimited("%s: Reported pmtu %d too low, using default minimum of %d\n",
410 __func__, pmtu, SCTP_DEFAULT_MINSEGMENT);
411
412 pmtu = SCTP_DEFAULT_MINSEGMENT;
413 }
414 pmtu = SCTP_TRUNC4(pmtu);
415
416 if (sctp_transport_pl_enabled(t))
417 return sctp_transport_pl_toobig(t, pmtu - sctp_transport_pl_hlen(t));
418
419 dst = sctp_transport_dst_check(t);
420 if (dst) {
421 struct sctp_pf *pf = sctp_get_pf_specific(dst->ops->family);
422 union sctp_addr addr;
423
424 pf->af->from_sk(&addr, sk);
425 pf->to_sk_daddr(&t->ipaddr, sk);
426 dst->ops->update_pmtu(dst, sk, NULL, pmtu, true);
427 pf->to_sk_daddr(&addr, sk);
428
429 dst = sctp_transport_dst_check(t);
430 }
431
432 if (!dst) {
433 t->af_specific->get_dst(t, &t->saddr, &t->fl, sk);
434 dst = t->dst;
435 }
436
437 if (dst) {
438
439 pmtu = sctp_dst_mtu(dst);
440 change = t->pathmtu != pmtu;
441 }
442 t->pathmtu = pmtu;
443
444 return change;
445}
446
447
448
449
450void sctp_transport_route(struct sctp_transport *transport,
451 union sctp_addr *saddr, struct sctp_sock *opt)
452{
453 struct sctp_association *asoc = transport->asoc;
454 struct sctp_af *af = transport->af_specific;
455
456 sctp_transport_dst_release(transport);
457 af->get_dst(transport, saddr, &transport->fl, sctp_opt2sk(opt));
458
459 if (saddr)
460 memcpy(&transport->saddr, saddr, sizeof(union sctp_addr));
461 else
462 af->get_saddr(opt, transport, &transport->fl);
463
464 sctp_transport_pmtu(transport, sctp_opt2sk(opt));
465
466
467
468
469 if (transport->dst && asoc &&
470 (!asoc->peer.primary_path || transport == asoc->peer.active_path))
471 opt->pf->to_sk_saddr(&transport->saddr, asoc->base.sk);
472}
473
474
475int sctp_transport_hold(struct sctp_transport *transport)
476{
477 return refcount_inc_not_zero(&transport->refcnt);
478}
479
480
481
482
483void sctp_transport_put(struct sctp_transport *transport)
484{
485 if (refcount_dec_and_test(&transport->refcnt))
486 sctp_transport_destroy(transport);
487}
488
489
490void sctp_transport_update_rto(struct sctp_transport *tp, __u32 rtt)
491{
492 if (unlikely(!tp->rto_pending))
493
494 pr_debug("%s: rto_pending not set on transport %p!\n", __func__, tp);
495
496 if (tp->rttvar || tp->srtt) {
497 struct net *net = tp->asoc->base.net;
498
499
500
501
502
503
504
505
506
507
508
509 tp->rttvar = tp->rttvar - (tp->rttvar >> net->sctp.rto_beta)
510 + (((__u32)abs((__s64)tp->srtt - (__s64)rtt)) >> net->sctp.rto_beta);
511 tp->srtt = tp->srtt - (tp->srtt >> net->sctp.rto_alpha)
512 + (rtt >> net->sctp.rto_alpha);
513 } else {
514
515
516
517 tp->srtt = rtt;
518 tp->rttvar = rtt >> 1;
519 }
520
521
522
523
524 if (tp->rttvar == 0)
525 tp->rttvar = SCTP_CLOCK_GRANULARITY;
526
527
528 tp->rto = tp->srtt + (tp->rttvar << 2);
529
530
531
532
533 if (tp->rto < tp->asoc->rto_min)
534 tp->rto = tp->asoc->rto_min;
535
536
537
538
539 if (tp->rto > tp->asoc->rto_max)
540 tp->rto = tp->asoc->rto_max;
541
542 sctp_max_rto(tp->asoc, tp);
543 tp->rtt = rtt;
544
545
546
547
548 tp->rto_pending = 0;
549
550 pr_debug("%s: transport:%p, rtt:%d, srtt:%d rttvar:%d, rto:%ld\n",
551 __func__, tp, rtt, tp->srtt, tp->rttvar, tp->rto);
552}
553
554
555
556
557void sctp_transport_raise_cwnd(struct sctp_transport *transport,
558 __u32 sack_ctsn, __u32 bytes_acked)
559{
560 struct sctp_association *asoc = transport->asoc;
561 __u32 cwnd, ssthresh, flight_size, pba, pmtu;
562
563 cwnd = transport->cwnd;
564 flight_size = transport->flight_size;
565
566
567 if (asoc->fast_recovery &&
568 TSN_lte(asoc->fast_recovery_exit, sack_ctsn))
569 asoc->fast_recovery = 0;
570
571 ssthresh = transport->ssthresh;
572 pba = transport->partial_bytes_acked;
573 pmtu = transport->asoc->pathmtu;
574
575 if (cwnd <= ssthresh) {
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590 if (asoc->fast_recovery)
591 return;
592
593
594
595
596
597
598 if (flight_size < cwnd)
599 return;
600
601 if (bytes_acked > pmtu)
602 cwnd += pmtu;
603 else
604 cwnd += bytes_acked;
605
606 pr_debug("%s: slow start: transport:%p, bytes_acked:%d, "
607 "cwnd:%d, ssthresh:%d, flight_size:%d, pba:%d\n",
608 __func__, transport, bytes_acked, cwnd, ssthresh,
609 flight_size, pba);
610 } else {
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633 pba += bytes_acked;
634 if (pba > cwnd && flight_size < cwnd)
635 pba = cwnd;
636 if (pba >= cwnd && flight_size >= cwnd) {
637 pba = pba - cwnd;
638 cwnd += pmtu;
639 }
640
641 pr_debug("%s: congestion avoidance: transport:%p, "
642 "bytes_acked:%d, cwnd:%d, ssthresh:%d, "
643 "flight_size:%d, pba:%d\n", __func__,
644 transport, bytes_acked, cwnd, ssthresh,
645 flight_size, pba);
646 }
647
648 transport->cwnd = cwnd;
649 transport->partial_bytes_acked = pba;
650}
651
652
653
654
655void sctp_transport_lower_cwnd(struct sctp_transport *transport,
656 enum sctp_lower_cwnd reason)
657{
658 struct sctp_association *asoc = transport->asoc;
659
660 switch (reason) {
661 case SCTP_LOWER_CWND_T3_RTX:
662
663
664
665
666
667
668
669 transport->ssthresh = max(transport->cwnd/2,
670 4*asoc->pathmtu);
671 transport->cwnd = asoc->pathmtu;
672
673
674 asoc->fast_recovery = 0;
675 break;
676
677 case SCTP_LOWER_CWND_FAST_RTX:
678
679
680
681
682
683
684
685
686
687
688
689
690 if (asoc->fast_recovery)
691 return;
692
693
694 asoc->fast_recovery = 1;
695 asoc->fast_recovery_exit = asoc->next_tsn - 1;
696
697 transport->ssthresh = max(transport->cwnd/2,
698 4*asoc->pathmtu);
699 transport->cwnd = transport->ssthresh;
700 break;
701
702 case SCTP_LOWER_CWND_ECNE:
703
704
705
706
707
708
709
710
711
712
713
714
715 if (time_after(jiffies, transport->last_time_ecne_reduced +
716 transport->rtt)) {
717 transport->ssthresh = max(transport->cwnd/2,
718 4*asoc->pathmtu);
719 transport->cwnd = transport->ssthresh;
720 transport->last_time_ecne_reduced = jiffies;
721 }
722 break;
723
724 case SCTP_LOWER_CWND_INACTIVE:
725
726
727
728
729
730
731
732
733 transport->cwnd = max(transport->cwnd/2,
734 4*asoc->pathmtu);
735
736 transport->ssthresh = transport->cwnd;
737 break;
738 }
739
740 transport->partial_bytes_acked = 0;
741
742 pr_debug("%s: transport:%p, reason:%d, cwnd:%d, ssthresh:%d\n",
743 __func__, transport, reason, transport->cwnd,
744 transport->ssthresh);
745}
746
747
748
749
750
751
752
753
754
755
756
757void sctp_transport_burst_limited(struct sctp_transport *t)
758{
759 struct sctp_association *asoc = t->asoc;
760 u32 old_cwnd = t->cwnd;
761 u32 max_burst_bytes;
762
763 if (t->burst_limited || asoc->max_burst == 0)
764 return;
765
766 max_burst_bytes = t->flight_size + (asoc->max_burst * asoc->pathmtu);
767 if (max_burst_bytes < old_cwnd) {
768 t->cwnd = max_burst_bytes;
769 t->burst_limited = old_cwnd;
770 }
771}
772
773
774
775
776void sctp_transport_burst_reset(struct sctp_transport *t)
777{
778 if (t->burst_limited) {
779 t->cwnd = t->burst_limited;
780 t->burst_limited = 0;
781 }
782}
783
784
785unsigned long sctp_transport_timeout(struct sctp_transport *trans)
786{
787
788 unsigned long timeout = trans->rto >> 1;
789
790 if (trans->state != SCTP_UNCONFIRMED &&
791 trans->state != SCTP_PF)
792 timeout += trans->hbinterval;
793
794 return max_t(unsigned long, timeout, HZ / 5);
795}
796
797
798void sctp_transport_reset(struct sctp_transport *t)
799{
800 struct sctp_association *asoc = t->asoc;
801
802
803
804
805
806
807 t->cwnd = min(4*asoc->pathmtu, max_t(__u32, 2*asoc->pathmtu, 4380));
808 t->burst_limited = 0;
809 t->ssthresh = asoc->peer.i.a_rwnd;
810 t->rto = asoc->rto_initial;
811 sctp_max_rto(asoc, t);
812 t->rtt = 0;
813 t->srtt = 0;
814 t->rttvar = 0;
815
816
817 t->partial_bytes_acked = 0;
818 t->flight_size = 0;
819 t->error_count = 0;
820 t->rto_pending = 0;
821 t->hb_sent = 0;
822
823
824 t->cacc.changeover_active = 0;
825 t->cacc.cycling_changeover = 0;
826 t->cacc.next_tsn_at_change = 0;
827 t->cacc.cacc_saw_newack = 0;
828}
829
830
831void sctp_transport_immediate_rtx(struct sctp_transport *t)
832{
833
834 if (del_timer(&t->T3_rtx_timer))
835 sctp_transport_put(t);
836
837 sctp_retransmit(&t->asoc->outqueue, t, SCTP_RTXR_T3_RTX);
838 if (!timer_pending(&t->T3_rtx_timer)) {
839 if (!mod_timer(&t->T3_rtx_timer, jiffies + t->rto))
840 sctp_transport_hold(t);
841 }
842}
843
844
845void sctp_transport_dst_release(struct sctp_transport *t)
846{
847 dst_release(t->dst);
848 t->dst = NULL;
849 t->dst_pending_confirm = 0;
850}
851
852
853void sctp_transport_dst_confirm(struct sctp_transport *t)
854{
855 t->dst_pending_confirm = 1;
856}
857