diff options
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index 8c1caaf9..99d76218 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -5525,10 +5525,14 @@ iface_ethtool_get_ts_info(pcap_t *handle, char *ebuf) int num_ts_types; int i, j; - /* ioctl() will fail for the "any" pseudo-device with ENODEV. */ - if (! strcmp(handle->opt.source, "any")) { - iface_set_default_ts_types(handle); - return 0; + /* + * This doesn't apply to the "any" device; you have to ask + * specific devices for their capabilities, so just default + * to saying we support all of them. + */ + if (strcmp(handle->opt.source, "any") == 0) { + iface_set_default_ts_types(handle); + return 0; } /* |