• Home
  • Raw
  • Download

Lines Matching refs:trans

642 			struct sctp_transport *trans;  in sctp_send_asconf_add_ip()  local
644 list_for_each_entry(trans, in sctp_send_asconf_add_ip()
646 trans->cwnd = min(4*asoc->pathmtu, max_t(__u32, in sctp_send_asconf_add_ip()
648 trans->ssthresh = asoc->peer.i.a_rwnd; in sctp_send_asconf_add_ip()
649 trans->rto = asoc->rto_initial; in sctp_send_asconf_add_ip()
650 sctp_max_rto(asoc, trans); in sctp_send_asconf_add_ip()
651 trans->rtt = trans->srtt = trans->rttvar = 0; in sctp_send_asconf_add_ip()
653 sctp_transport_route(trans, NULL, in sctp_send_asconf_add_ip()
2459 struct sctp_transport *trans, in sctp_apply_peer_addr_params() argument
2468 if (params->spp_flags & SPP_HB_DEMAND && trans) { in sctp_apply_peer_addr_params()
2469 struct net *net = sock_net(trans->asoc->base.sk); in sctp_apply_peer_addr_params()
2471 error = sctp_primitive_REQUESTHEARTBEAT(net, trans->asoc, trans); in sctp_apply_peer_addr_params()
2491 if (trans) { in sctp_apply_peer_addr_params()
2492 trans->hbinterval = in sctp_apply_peer_addr_params()
2494 sctp_transport_reset_hb_timer(trans); in sctp_apply_peer_addr_params()
2505 if (trans) { in sctp_apply_peer_addr_params()
2506 trans->param_flags = in sctp_apply_peer_addr_params()
2507 (trans->param_flags & ~SPP_HB) | hb_change; in sctp_apply_peer_addr_params()
2523 if (trans) { in sctp_apply_peer_addr_params()
2524 trans->pathmtu = params->spp_pathmtu; in sctp_apply_peer_addr_params()
2534 if (trans) { in sctp_apply_peer_addr_params()
2535 int update = (trans->param_flags & SPP_PMTUD_DISABLE) && in sctp_apply_peer_addr_params()
2537 trans->param_flags = in sctp_apply_peer_addr_params()
2538 (trans->param_flags & ~SPP_PMTUD) | pmtud_change; in sctp_apply_peer_addr_params()
2540 sctp_transport_pmtu(trans, sctp_opt2sk(sp)); in sctp_apply_peer_addr_params()
2557 if (trans) { in sctp_apply_peer_addr_params()
2558 trans->sackdelay = in sctp_apply_peer_addr_params()
2569 if (trans) { in sctp_apply_peer_addr_params()
2570 trans->param_flags = in sctp_apply_peer_addr_params()
2571 (trans->param_flags & ~SPP_SACKDELAY) | in sctp_apply_peer_addr_params()
2588 if (trans) { in sctp_apply_peer_addr_params()
2589 trans->pathmaxrxt = params->spp_pathmaxrxt; in sctp_apply_peer_addr_params()
2598 if (trans) { in sctp_apply_peer_addr_params()
2599 if (trans->ipaddr.sa.sa_family == AF_INET6) { in sctp_apply_peer_addr_params()
2600 trans->flowlabel = params->spp_ipv6_flowlabel & in sctp_apply_peer_addr_params()
2602 trans->flowlabel |= SCTP_FLOWLABEL_SET_MASK; in sctp_apply_peer_addr_params()
2626 if (trans) { in sctp_apply_peer_addr_params()
2627 trans->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; in sctp_apply_peer_addr_params()
2628 trans->dscp |= SCTP_DSCP_SET_MASK; in sctp_apply_peer_addr_params()
2654 struct sctp_transport *trans = NULL; in sctp_setsockopt_peer_addr_params() local
2690 trans = sctp_addr_id2transport(sk, &params.spp_address, in sctp_setsockopt_peer_addr_params()
2692 if (!trans) in sctp_setsockopt_peer_addr_params()
2708 if (params.spp_flags & SPP_HB_DEMAND && !trans && !asoc) in sctp_setsockopt_peer_addr_params()
2712 error = sctp_apply_peer_addr_params(&params, trans, asoc, sp, in sctp_setsockopt_peer_addr_params()
2722 if (!trans && asoc) { in sctp_setsockopt_peer_addr_params()
2723 list_for_each_entry(trans, &asoc->peer.transport_addr_list, in sctp_setsockopt_peer_addr_params()
2725 sctp_apply_peer_addr_params(&params, trans, asoc, sp, in sctp_setsockopt_peer_addr_params()
2747 struct sctp_transport *trans; in sctp_apply_asoc_delayed_ack() local
2763 list_for_each_entry(trans, &asoc->peer.transport_addr_list, in sctp_apply_asoc_delayed_ack()
2766 trans->sackdelay = msecs_to_jiffies(params->sack_delay); in sctp_apply_asoc_delayed_ack()
2767 trans->param_flags = in sctp_apply_asoc_delayed_ack()
2768 sctp_spp_sackdelay_enable(trans->param_flags); in sctp_apply_asoc_delayed_ack()
2771 trans->param_flags = in sctp_apply_asoc_delayed_ack()
2772 sctp_spp_sackdelay_disable(trans->param_flags); in sctp_apply_asoc_delayed_ack()
2774 trans->sackfreq = params->sack_freq; in sctp_apply_asoc_delayed_ack()
2775 trans->param_flags = in sctp_apply_asoc_delayed_ack()
2776 sctp_spp_sackdelay_enable(trans->param_flags); in sctp_apply_asoc_delayed_ack()
3066 struct sctp_transport *trans; in sctp_setsockopt_primary_addr() local
3087 trans = sctp_addr_id2transport(sk, &prim.ssp_addr, prim.ssp_assoc_id); in sctp_setsockopt_primary_addr()
3088 if (!trans) in sctp_setsockopt_primary_addr()
3091 sctp_assoc_set_primary(trans->asoc, trans); in sctp_setsockopt_primary_addr()
3988 struct sctp_transport *trans; in sctp_setsockopt_paddr_thresholds() local
3998 trans = sctp_addr_id2transport(sk, &val.spt_address, in sctp_setsockopt_paddr_thresholds()
4000 if (!trans) in sctp_setsockopt_paddr_thresholds()
4004 trans->pathmaxrxt = val.spt_pathmaxrxt; in sctp_setsockopt_paddr_thresholds()
4005 trans->pf_retrans = val.spt_pathpfthld; in sctp_setsockopt_paddr_thresholds()
4016 list_for_each_entry(trans, &asoc->peer.transport_addr_list, in sctp_setsockopt_paddr_thresholds()
4019 trans->pathmaxrxt = val.spt_pathmaxrxt; in sctp_setsockopt_paddr_thresholds()
4020 trans->pf_retrans = val.spt_pathpfthld; in sctp_setsockopt_paddr_thresholds()
5958 struct sctp_transport *trans = NULL; in sctp_getsockopt_peer_addr_params() local
5978 trans = sctp_addr_id2transport(sk, &params.spp_address, in sctp_getsockopt_peer_addr_params()
5980 if (!trans) { in sctp_getsockopt_peer_addr_params()
5997 if (trans) { in sctp_getsockopt_peer_addr_params()
5999 params.spp_hbinterval = jiffies_to_msecs(trans->hbinterval); in sctp_getsockopt_peer_addr_params()
6000 params.spp_pathmtu = trans->pathmtu; in sctp_getsockopt_peer_addr_params()
6001 params.spp_pathmaxrxt = trans->pathmaxrxt; in sctp_getsockopt_peer_addr_params()
6002 params.spp_sackdelay = jiffies_to_msecs(trans->sackdelay); in sctp_getsockopt_peer_addr_params()
6005 params.spp_flags = trans->param_flags; in sctp_getsockopt_peer_addr_params()
6006 if (trans->flowlabel & SCTP_FLOWLABEL_SET_MASK) { in sctp_getsockopt_peer_addr_params()
6007 params.spp_ipv6_flowlabel = trans->flowlabel & in sctp_getsockopt_peer_addr_params()
6011 if (trans->dscp & SCTP_DSCP_SET_MASK) { in sctp_getsockopt_peer_addr_params()
6012 params.spp_dscp = trans->dscp & SCTP_DSCP_VAL_MASK; in sctp_getsockopt_peer_addr_params()
7215 struct sctp_transport *trans; in sctp_getsockopt_paddr_thresholds() local
7225 trans = sctp_addr_id2transport(sk, &val.spt_address, in sctp_getsockopt_paddr_thresholds()
7227 if (!trans) in sctp_getsockopt_paddr_thresholds()
7230 val.spt_pathmaxrxt = trans->pathmaxrxt; in sctp_getsockopt_paddr_thresholds()
7231 val.spt_pathpfthld = trans->pf_retrans; in sctp_getsockopt_paddr_thresholds()