diff options
Diffstat (limited to 'net/libreswan/patches/010-nanosleep.patch')
-rw-r--r-- | net/libreswan/patches/010-nanosleep.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/libreswan/patches/010-nanosleep.patch b/net/libreswan/patches/010-nanosleep.patch index 45481cd1b..c38b4dade 100644 --- a/net/libreswan/patches/010-nanosleep.patch +++ b/net/libreswan/patches/010-nanosleep.patch @@ -9,13 +9,13 @@ #include <errno.h> #include "defs.h" -@@ -180,7 +180,8 @@ - /* Send a duplicate packet when this impair is enabled - used for testing */ - if (IMPAIR(JACOB_TWO_TWO)) { +@@ -192,7 +192,8 @@ static bool send_chunks(const char *wher + */ + if (impair.jacob_two_two) { /* sleep for half a second, and second another packet */ - usleep(500000); + const struct timespec req = {0, 500 * 1000 * 1000}; + nanosleep(&req, NULL); endpoint_buf b; endpoint_buf ib; - DBG_log("JACOB 2-2: resending %zu bytes for %s through %s from %s to %s:", + llog(RC_LOG, logger, |