]> The Tcpdump Group git mirrors - libpcap/commitdiff
Handle kernels that don't have ETHTOOL_GFLAGS.
authorGuy Harris <[email protected]>
Sun, 12 Jun 2011 02:34:26 +0000 (19:34 -0700)
committerGuy Harris <[email protected]>
Sun, 12 Jun 2011 02:34:26 +0000 (19:34 -0700)
pcap-linux.c

index d7950790da5c227638581fb545f38fb363b481aa..fa1d028dba9b4a29ac0c1fdd4f10fe4eb2471a1a 100644 (file)
@@ -4763,11 +4763,13 @@ iface_get_offload(pcap_t *handle)
        if (ret)
                return 1;       /* generic segmentation offloading on */
 
+#ifdef ETHTOOL_GFLAGS
        ret = iface_ethtool_ioctl(handle, ETHTOOL_GFLAGS, "ETHTOOL_GFLAGS");
        if (ret == -1)
                return -1;
        if (ret & ETH_FLAG_LRO)
                return 1;       /* large receive offloading on */
+#endif
 
 #ifdef ETHTOOL_GGRO
        /*