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

index 61d4db074e1e4462f57cbbdacb4c63216706ba73..d7950790da5c227638581fb545f38fb363b481aa 100644 (file)
@@ -4769,6 +4769,7 @@ iface_get_offload(pcap_t *handle)
        if (ret & ETH_FLAG_LRO)
                return 1;       /* large receive offloading on */
 
+#ifdef ETHTOOL_GGRO
        /*
         * XXX - will this cause large reassembled packets to be
         * handed to PF_PACKET sockets on receipt?  If not,
@@ -4779,6 +4780,7 @@ iface_get_offload(pcap_t *handle)
                return -1;
        if (ret)
                return 1;       /* generic (large) receive offloading on */
+#endif
 
        return 0;
 }