aboutsummaryrefslogtreecommitdiff
path: root/usrsctplib
diff options
context:
space:
mode:
authorYury Yaroshevich <yura.yaroshevich@gmail.com>2020-05-25 12:17:05 +0300
committerGitHub <noreply@github.com>2020-05-25 11:17:05 +0200
commit85c8e5066caf77f91393f05128bb9971c9998abd (patch)
treeca0ca5f42865a23d2b55788f1ad5695ea3ddee42 /usrsctplib
parent3fbc9fc07e73e4f82b3be85b2fe354052f7c6b70 (diff)
downloadusrsctp-85c8e5066caf77f91393f05128bb9971c9998abd.tar.gz
Adjust `usrsctp_handle_timers` signature and implementation (#470)
* usrsctp_handle_timers should accept mcecs as argument. * Renamed argument to have more clear name. * Renamed function to match behavior.
Diffstat (limited to 'usrsctplib')
-rwxr-xr-xusrsctplib/user_socket.c4
-rw-r--r--usrsctplib/usrsctp.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/usrsctplib/user_socket.c b/usrsctplib/user_socket.c
index c2fb0407..811e0617 100755
--- a/usrsctplib/user_socket.c
+++ b/usrsctplib/user_socket.c
@@ -3543,9 +3543,9 @@ usrsctp_conninput(void *addr, const void *buffer, size_t length, uint8_t ecn_bit
return;
}
-void usrsctp_handle_timers(uint32_t delta)
+void usrsctp_handle_timers(uint32_t elapsed_milliseconds)
{
- sctp_handle_tick(delta);
+ sctp_handle_tick(MSEC_TO_TICKS(elapsed_milliseconds));
}
int
diff --git a/usrsctplib/usrsctp.h b/usrsctplib/usrsctp.h
index 10a12391..fea2aafd 100644
--- a/usrsctplib/usrsctp.h
+++ b/usrsctplib/usrsctp.h
@@ -1046,7 +1046,7 @@ usrsctp_get_events(struct socket *so);
void
-usrsctp_handle_timers(uint32_t delta);
+usrsctp_handle_timers(uint32_t elapsed_milliseconds);
#define SCTP_DUMP_OUTBOUND 1
#define SCTP_DUMP_INBOUND 0