From: Alan T. DeKok Date: Wed, 3 Jan 2024 14:17:52 +0000 (-0500) Subject: might as well support this, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ef888ac08fef2a6f58d55ce3f752672380e36c1;p=thirdparty%2Ffreeradius-server.git might as well support this, too --- diff --git a/src/lib/util/udpfromto.c b/src/lib/util/udpfromto.c index 7f737795728..c5eb8cb9228 100644 --- a/src/lib/util/udpfromto.c +++ b/src/lib/util/udpfromto.c @@ -357,6 +357,12 @@ DIAG_ON(sign-compare) *when = fr_time_from_timeval((struct timeval *)CMSG_DATA(cmsg)); } #endif + +#ifdef SO_TIMESTAMPNS + if (when && (cmsg->cmsg_level == SOL_IP) && (cmsg->cmsg_type == SO_TIMESTAMPNS)) { + *when = fr_time_from_timespec((struct timeval *)CMSG_DATA(cmsg)); + } +#endif } if (when && fr_time_eq(*when, fr_time_wrap(0))) *when = fr_time();