Ignore set_test_zerocopy if host does not support it

This commit is contained in:
Brian Candler 2014-12-22 18:02:14 +00:00
parent fab3e1dd85
commit 8961016f90

View File

@ -390,7 +390,7 @@ iperf_has_zerocopy( void )
void
iperf_set_test_zerocopy(struct iperf_test *ipt, int zerocopy)
{
ipt->zerocopy = zerocopy;
ipt->zerocopy = (zerocopy && has_sendfile());
}
void