@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 */
| 2441 | * @param newexp New expiration time |
| 2442 | */ |
| 2443 | static void |
| 2444 | sctp_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 |
no test coverage detected