aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2020-02-18 18:34:30 -0800
committerGuy Harris <guy@alum.mit.edu>2020-02-18 18:34:30 -0800
commit1acd6fdfcf7c25fc0e38152199f40efcb72592ea (patch)
treebe45274e2597b37d78f9aefec5d51d7668edd976 /pcap-linux.c
parent1a68396cebeb77650eb57be459877c32b8fac00a (diff)
Don't bother checking for SIOCGSTAMPNS or SO_TIMESTAMPNS.
We only support building for 2.6.27 or later, and those have both of those defined.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 6d5bde68..d5eff0aa 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -346,7 +346,6 @@ pcap_create_interface(const char *device, char *ebuf)
}
#endif
-#if defined(SIOCGSTAMPNS) && defined(SO_TIMESTAMPNS)
/*
* We claim that we support microsecond and nanosecond time
* stamps.
@@ -365,7 +364,6 @@ pcap_create_interface(const char *device, char *ebuf)
}
handle->tstamp_precision_list[0] = PCAP_TSTAMP_PRECISION_MICRO;
handle->tstamp_precision_list[1] = PCAP_TSTAMP_PRECISION_NANO;
-#endif /* defined(SIOCGSTAMPNS) && defined(SO_TIMESTAMPNS) */
struct pcap_linux *handlep = handle->priv;
handlep->poll_breakloop_fd = eventfd(0, EFD_NONBLOCK);
@@ -2811,7 +2809,6 @@ activate_pf_packet(pcap_t *handle, int is_any_device)
break;
}
-#if defined(SIOCGSTAMPNS) && defined(SO_TIMESTAMPNS)
if (handle->opt.tstamp_precision == PCAP_TSTAMP_PRECISION_NANO) {
int nsec_tstamps = 1;
@@ -2821,7 +2818,6 @@ activate_pf_packet(pcap_t *handle, int is_any_device)
return PCAP_ERROR;
}
}
-#endif /* defined(SIOCGSTAMPNS) && defined(SO_TIMESTAMPNS) */
/*
* We've succeeded. Save the socket FD in the pcap structure.