2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[#3231] Refine conditional log in pkt_filter_bpf.cc

modified:   pkt_filter_bpf.cc
This commit is contained in:
Thomas Markwalder
2024-02-20 11:31:46 -05:00
parent 6fec7cf6da
commit 468d74bd0a

View File

@@ -539,7 +539,7 @@ PktFilterBPF::receive(Iface& iface, const SocketInfo& socket_info) {
pkt->setRemoteHWAddr(dummy_pkt->getRemoteHWAddr());
// Set time the packet was stored in the buffer.
#ifdef BPF_TIMEVAL
#if (defined(BPF_TIMEVAL)) && (BPF_TIMEVAL == timeval32)
// Convert to ptime directly to avoid timeval vs
// timeval32 definitons under MacOS.
time_t time_t_secs = bpfh.bh_tstamp.tv_sec;