summaryrefslogtreecommitdiff
path: root/selftest.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-28 10:29:25 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-28 10:29:25 -0700
commit40d5c79b62e7ca7f6da7697e720fb0eb49a26125 (patch)
treeff211297bf7fed40e1942fb1fc838f4155427cd9 /selftest.cpp
parent15371095146a45122407719d33bcf339ed0f87bf (diff)
downloadinfinitytier-40d5c79b62e7ca7f6da7697e720fb0eb49a26125.tar.gz
infinitytier-40d5c79b62e7ca7f6da7697e720fb0eb49a26125.zip
Enable SO_NO_CHECK if available to skip UDP checksum on packet send for slight performance improvement. We do our own cryptographically secure authentication so UDP checksum is worthless.
Diffstat (limited to 'selftest.cpp')
-rw-r--r--selftest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest.cpp b/selftest.cpp
index cf20fdf3..714964cb 100644
--- a/selftest.cpp
+++ b/selftest.cpp
@@ -696,7 +696,7 @@ static int testPhy()
std::cout << "[phy] Creating phy endpoint..." << std::endl;
TestPhyHandlers testPhyHandlers;
- testPhyInstance = new Phy<TestPhyHandlers *>(&testPhyHandlers,false);
+ testPhyInstance = new Phy<TestPhyHandlers *>(&testPhyHandlers,false,true);
std::cout << "[phy] Binding UDP listen socket to 127.0.0.1/60002... ";
PhySocket *udpListenSock = testPhyInstance->udpBind((const struct sockaddr *)&bindaddr);