From: Guy Harris Date: Sun, 12 Jun 2011 02:08:15 +0000 (-0700) Subject: Handle kernels that don't have ETHTOOL_GGRO. X-Git-Tag: libpcap-1.2.1~47 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/70aeb30f820dd3ef798dff8a34ac26ef44de3d86 Handle kernels that don't have ETHTOOL_GGRO. --- diff --git a/pcap-linux.c b/pcap-linux.c index 61d4db07..d7950790 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -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; }