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

Function sctp_ResetTimeOut

freebsd/netinet/libalias/alias_sctp.c:2443–2453  ·  view source on GitHub ↗

@ingroup Timer * @brief Reset timer in timer queue * * Reset the actual timeout for the specified association. If it is earlier than * the existing timeout, then remove and re-install the association into the * queue * * @param la Pointer to the relevant libalias instance * @param assoc pointer to sctp association * @param newexp New expiration time */

Source from the content-addressed store, hash-verified

2441 * @param newexp New expiration time
2442 */
2443static void
2444sctp_ResetTimeOut(struct libalias *la, struct sctp_nat_assoc *assoc, int newexp)
2445{
2446 if (newexp < assoc->exp) {
2447 sctp_RmTimeOut(la, assoc);
2448 assoc->exp = newexp;
2449 sctp_AddTimeOut(la, assoc);
2450 } else {
2451 assoc->exp = newexp;
2452 }
2453}
2454
2455/** @ingroup Timer
2456 * @brief Check timer Q against current time

Callers 4

INi_processFunction · 0.85
INa_processFunction · 0.85
UP_processFunction · 0.85
CL_processFunction · 0.85

Calls 2

sctp_RmTimeOutFunction · 0.85
sctp_AddTimeOutFunction · 0.85

Tested by

no test coverage detected