• Home
  • Raw
  • Download

Lines Matching refs:rtoinfo

3077 				   struct sctp_rtoinfo *rtoinfo,  in sctp_setsockopt_rtoinfo()  argument
3087 asoc = sctp_id2assoc(sk, rtoinfo->srto_assoc_id); in sctp_setsockopt_rtoinfo()
3090 if (!asoc && rtoinfo->srto_assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_rtoinfo()
3094 rto_max = rtoinfo->srto_max; in sctp_setsockopt_rtoinfo()
3095 rto_min = rtoinfo->srto_min; in sctp_setsockopt_rtoinfo()
3100 rto_max = asoc ? asoc->rto_max : sp->rtoinfo.srto_max; in sctp_setsockopt_rtoinfo()
3105 rto_min = asoc ? asoc->rto_min : sp->rtoinfo.srto_min; in sctp_setsockopt_rtoinfo()
3111 if (rtoinfo->srto_initial != 0) in sctp_setsockopt_rtoinfo()
3113 msecs_to_jiffies(rtoinfo->srto_initial); in sctp_setsockopt_rtoinfo()
3120 if (rtoinfo->srto_initial != 0) in sctp_setsockopt_rtoinfo()
3121 sp->rtoinfo.srto_initial = rtoinfo->srto_initial; in sctp_setsockopt_rtoinfo()
3122 sp->rtoinfo.srto_max = rto_max; in sctp_setsockopt_rtoinfo()
3123 sp->rtoinfo.srto_min = rto_min; in sctp_setsockopt_rtoinfo()
4885 sp->rtoinfo.srto_initial = net->sctp.rto_initial; in sctp_init_sock()
4886 sp->rtoinfo.srto_max = net->sctp.rto_max; in sctp_init_sock()
4887 sp->rtoinfo.srto_min = net->sctp.rto_min; in sctp_init_sock()
6434 struct sctp_rtoinfo rtoinfo; in sctp_getsockopt_rtoinfo() local
6442 if (copy_from_user(&rtoinfo, optval, len)) in sctp_getsockopt_rtoinfo()
6445 asoc = sctp_id2assoc(sk, rtoinfo.srto_assoc_id); in sctp_getsockopt_rtoinfo()
6447 if (!asoc && rtoinfo.srto_assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_rtoinfo()
6453 rtoinfo.srto_initial = jiffies_to_msecs(asoc->rto_initial); in sctp_getsockopt_rtoinfo()
6454 rtoinfo.srto_max = jiffies_to_msecs(asoc->rto_max); in sctp_getsockopt_rtoinfo()
6455 rtoinfo.srto_min = jiffies_to_msecs(asoc->rto_min); in sctp_getsockopt_rtoinfo()
6460 rtoinfo.srto_initial = sp->rtoinfo.srto_initial; in sctp_getsockopt_rtoinfo()
6461 rtoinfo.srto_max = sp->rtoinfo.srto_max; in sctp_getsockopt_rtoinfo()
6462 rtoinfo.srto_min = sp->rtoinfo.srto_min; in sctp_getsockopt_rtoinfo()
6468 if (copy_to_user(optval, &rtoinfo, len)) in sctp_getsockopt_rtoinfo()