Anders Broman
2013-12-02 13:50:19 UTC
Hi,
Playing with this function I get
pcap_list_tstamp_types, num tstamp_types 3
host
adapter_unsynced
adapter
Then trying to set pcap_set_tstamp_type(pcap_h, PCAP_TSTAMP_ADAPTER);
'eth1' (SIOCSHWTSTAMP failed: Numerical result out of range).
ethtool -T eth1
Time stamping parameters for eth1:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 1
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
ptpv1-l4-event (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
ptpv2-l4-event (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
ptpv2-l2-event (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
So it seems libpcap is reporting the availability of HW timestamp when in fact it's not available. Or am I missing something?
(1.6.0-PRE-GIT)
Regards
Anders
Playing with this function I get
pcap_list_tstamp_types, num tstamp_types 3
host
adapter_unsynced
adapter
Then trying to set pcap_set_tstamp_type(pcap_h, PCAP_TSTAMP_ADAPTER);
'eth1' (SIOCSHWTSTAMP failed: Numerical result out of range).
ethtool -T eth1
Time stamping parameters for eth1:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 1
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
ptpv1-l4-event (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
ptpv2-l4-event (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
ptpv2-l2-event (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
So it seems libpcap is reporting the availability of HW timestamp when in fact it's not available. Or am I missing something?
(1.6.0-PRE-GIT)
Regards
Anders