Lines Matching defs:fp

67 	sctp_faddr_t *fp;
83 fp = sctp->sctp_primary;
85 if (fp->sf_isv4) {
89 IN6_V4MAPPED_TO_INADDR(&fp->sf_faddr, &sin->sin_addr);
95 sin6->sin6_addr = fp->sf_faddr;
98 sp->spinfo_state = fp->sf_state == SCTP_FADDRS_ALIVE ? SCTP_ACTIVE :
100 sp->spinfo_cwnd = fp->sf_cwnd;
101 sp->spinfo_srtt = fp->sf_srtt;
102 sp->spinfo_rto = fp->sf_rto;
103 sp->spinfo_mtu += fp->sf_pmss;
158 sctp_faddr_t *fp;
173 if ((fp = sctp_lookup_faddr(sctp, &faddr)) == NULL)
176 infop->spinfo_state = (fp->sf_state == SCTP_FADDRS_ALIVE) ?
178 infop->spinfo_cwnd = fp->sf_cwnd;
179 infop->spinfo_srtt = TICK_TO_MSEC(fp->sf_srtt);
180 infop->spinfo_rto = TICK_TO_MSEC(fp->sf_rto);
181 infop->spinfo_mtu = fp->sf_pmss;
263 sctp_faddr_t *fp;
271 for (i = 0, fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) {
287 sctp_faddr_t *fp;
296 for (fp = sctp->sctp_faddrs; fp; fp = fp->sf_next) {
297 sum += fp->sf_max_retr;
434 sctp_faddr_t *fp;
437 retval = sctp_find_peer_fp(sctp, &spp->spp_address, &fp);
441 if (fp) {
442 spp->spp_hbinterval = TICK_TO_MSEC(fp->sf_hb_interval);
443 spp->spp_pathmaxrxt = fp->sf_max_retr;
455 sctp_faddr_t *fp, *fp2;
461 retval = sctp_find_peer_fp(sctp, &spp->spp_address, &fp);
478 if (!fp || fp2 == fp) {
490 if (fp != NULL) {
496 sctp_send_heartbeat(sctp, fp);
498 fp->sf_hb_interval = MSEC_TO_TICK(spp->spp_hbinterval);
499 fp->sf_hb_expiry = now + SET_HB_INTVL(fp);
508 fp->sf_max_retr = spp->spp_pathmaxrxt;
584 sctp_faddr_t *fp;
586 retval = sctp_find_peer_fp(sctp, &pp->sspp_addr, &fp);
590 if (fp == NULL)
592 if (fp == sctp->sctp_primary)
594 sctp->sctp_primary = fp;
596 /* Only switch current if fp is alive */
597 if (fp->sf_state != SCTP_FADDRS_ALIVE || fp == sctp->sctp_current) {
600 sctp_set_faddr_current(sctp, fp);
901 sctp_faddr_t *fp;
903 for (i = 0, fp = sctp->sctp_faddrs; fp != NULL;
904 i++, fp = fp->sf_next)
1329 sctp_faddr_t *fp;
1334 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next)
1335 sctp_get_dest(sctp, fp);
1466 sctp_faddr_t *fp = sctp->sctp_faddrs;
1510 for (cnt = 0; cnt < max && fp != NULL; cnt++, fp = fp->sf_next) {
1511 addr = fp->sf_faddr;
1527 (fp->sf_ixa->ixa_flags & IXAF_SCOPEID_SET))
1528 sin6->sin6_scope_id = fp->sf_ixa->ixa_scopeid;