Lines Matching refs:fp
50 sctp_faddr_t *fp;
65 fp = sctp_lookup_faddr(sctp, &addr);
67 if (fp == NULL) {
88 smp = sctp_make_mp(sctp, fp, len);
106 sctp_set_iplen(sctp, smp, fp->sf_ixa);
107 (void) conn_ip_output(smp, fp->sf_ixa);
118 sctp_send_heartbeat(sctp_t *sctp, sctp_faddr_t *fp)
130 SCTP_PRINTADDR(fp->sf_faddr), SCTP_PRINTADDR(fp->sf_saddr)));
135 sizeof (fp->sf_hb_secret) +
136 sizeof (fp->sf_faddr);
137 hbmp = sctp_make_mp(sctp, fp, hblen);
172 bcopy(&fp->sf_hb_secret, t, sizeof (uint64_t));
183 bcopy(&fp->sf_faddr, a, sizeof (*a));
188 fp->sf_lastactive = now;
189 fp->sf_hb_pending = B_TRUE;
194 sctp_set_iplen(sctp, hbmp, fp->sf_ixa);
195 (void) conn_ip_output(hbmp, fp->sf_ixa);
205 sctp_faddr_t *fp;
220 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) {
222 if (fp->sf_state == SCTP_FADDRS_UNREACH)
224 if (fp->sf_state == SCTP_FADDRS_UNCONFIRMED) {
226 fp->sf_hb_expiry = now + fp->sf_rto;
227 sctp_send_heartbeat(sctp, fp);
235 fp->sf_hb_expiry = now +
240 if (fp->sf_hb_interval != 0 && (earliest_expiry == 0 ||
241 fp->sf_hb_expiry < earliest_expiry)) {
242 earliest_expiry = fp->sf_hb_expiry;
278 sctp_faddr_t *fp;
316 fp = sctp_lookup_faddr(sctp, &addr);
317 if (fp == NULL) {
322 if (secret != fp->sf_hb_secret) {
330 sctp_faddr_alive(sctp, fp);
332 sctp_update_rtt(sctp, fp, now - sent);
339 fp->sf_hb_expiry = now + SET_HB_INTVL(fp);