]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_sigtran: Move to fr_time_t
authorJorge Pereira <jpereiran@gmail.com>
Thu, 23 May 2019 00:39:20 +0000 (21:39 -0300)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 23 May 2019 04:05:58 +0000 (00:05 -0400)
src/modules/rlm_sigtran/libosmo-m3ua/pcap.c

index cea24688bdf1c90e453057b2c732e25f94cfa266..5959aa599a4a83b46617743d491e2631a556908d 100644 (file)
@@ -75,7 +75,7 @@ int mtp_pcap_write_msu(int fd, const uint8_t *data, int length)
                .orig_len   = length,
        };
 
-       gettimeofday(&tv, NULL);
+       fr_time_to_timeval(&tv, fr_time());
        payload_header.ts_sec = tv.tv_sec;
        payload_header.ts_usec = tv.tv_usec;