MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_shutdownack_timer

Function sctp_shutdownack_timer

freebsd/netinet/sctp_timer.c:1323–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1321}
1322
1323int
1324sctp_shutdownack_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
1325 struct sctp_nets *net)
1326{
1327 struct sctp_nets *alt;
1328
1329 /* first threshold management */
1330 if (sctp_threshold_management(inp, stcb, net, stcb->asoc.max_send_times)) {
1331 /* Assoc is over */
1332 return (1);
1333 }
1334 sctp_backoff_on_timeout(stcb, net, 1, 0, 0);
1335 /* second select an alternative */
1336 alt = sctp_find_alternate_net(stcb, net, 0);
1337
1338 /* third generate a shutdown into the queue for out net */
1339 sctp_send_shutdown_ack(stcb, alt);
1340
1341 /* fourth restart timer */
1342 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWNACK, inp, stcb, alt);
1343 return (0);
1344}
1345
1346static void
1347sctp_audit_stream_queues_for_size(struct sctp_inpcb *inp,

Callers 1

sctp_timeout_handlerFunction · 0.85

Calls 5

sctp_backoff_on_timeoutFunction · 0.85
sctp_find_alternate_netFunction · 0.85
sctp_send_shutdown_ackFunction · 0.85
sctp_timer_startFunction · 0.85

Tested by

no test coverage detected