summaryrefslogtreecommitdiff
path: root/pcap-dag.c
diff options
context:
space:
mode:
authorsfd <stephen.donnelly@emulex.com>2014-09-08 10:58:43 +1200
committersfd <stephen.donnelly@emulex.com>2014-09-08 10:58:43 +1200
commitef3890c3d28b30c80cad144f1ae2dfdd25f7c77c (patch)
treed4063cf7f2105cf1717ed93a6b94ed8f0e2ac529 /pcap-dag.c
parentcb8b6fad1e92832e1a853133165968733003ff9d (diff)
downloadlibpcap-ef3890c3d28b30c80cad144f1ae2dfdd25f7c77c.tar.gz
Remove advertising of tstamp_type sinc we don't support setting this.
A new API for advertising/recording reference clock sources and synchronisation state may be available in future.
Diffstat (limited to 'pcap-dag.c')
-rw-r--r--pcap-dag.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/pcap-dag.c b/pcap-dag.c
index 26521a5f..099127f7 100644
--- a/pcap-dag.c
+++ b/pcap-dag.c
@@ -937,26 +937,6 @@ pcap_t *dag_create(const char *device, char *ebuf, int *is_ours)
return NULL;
p->activate_op = dag_activate;
- /*
- * We claim that we support:
- *
- * hardware time stamps, synced to the host time;
- * hardware time stamps, not synced to the host time.
- *
- * XXX - we can't determine whether the user configured the clock to be
- * synchronisd to the host clock, a different clock, or is free running,
- * so we claim both. We don't support software (HOST) timestamps at all.
- */
- p->tstamp_type_count = 2;
- p->tstamp_type_list = malloc(2 * sizeof(u_int));
- if (p->tstamp_type_list == NULL) {
- snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s",
- pcap_strerror(errno));
- free(p);
- return NULL;
- }
- p->tstamp_type_list[0] = PCAP_TSTAMP_ADAPTER;
- p->tstamp_type_list[1] = PCAP_TSTAMP_ADAPTER_UNSYNCED;
/*
* We claim that we support microsecond and nanosecond time