From a4cf12360fb7a8eae4fa4923763309b7f10797c3 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 19 Jul 2021 11:38:15 -0300 Subject: support: Add support_socket_so_timestamp_time64 Check if the socket support 64-bit network packages timestamps (SO_TIMESTAMP and SO_TIMESTAMPNS). This will be used on recvmsg and recvmmsg tests to check if the timestamp should be generated. --- support/support.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'support/support.h') diff --git a/support/support.h b/support/support.h index ee27149d98..73b9fc48f0 100644 --- a/support/support.h +++ b/support/support.h @@ -183,6 +183,10 @@ extern bool support_select_modifies_timeout (void); tv_usec larger than 1000000. */ extern bool support_select_normalizes_timeout (void); +/* Return true if socket FD supports 64-bit timestamps with the SOL_SOCKET + and SO_TIMESTAMP/SO_TIMESTAMPNS. */ +extern bool support_socket_so_timestamp_time64 (int fd); + /* Create a timer that trigger after SEC seconds and NSEC nanoseconds. If REPEAT is true the timer will repeat indefinitely. If CALLBACK is not NULL, the function will be called when the timer expires; otherwise a -- cgit 1.4.1