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

Function sctp_ticks_to_secs

freebsd/netinet/sctputil.c:832–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830}
831
832uint32_t
833sctp_ticks_to_secs(uint32_t ticks)
834{
835 uint64_t temp;
836 uint32_t secs;
837
838 temp = ((uint64_t)ticks + (hz - 1)) / hz;
839 if (temp > UINT32_MAX) {
840 secs = UINT32_MAX;
841 } else {
842 secs = (uint32_t)temp;
843 }
844 return (secs);
845}
846
847/*
848 * sctp_stop_timers_for_shutdown() should be called

Callers 2

sctp_handle_cookie_echoFunction · 0.85
sctp_getoptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected