summaryrefslogtreecommitdiffstats
path: root/clatd.c
diff options
context:
space:
mode:
Diffstat (limited to 'clatd.c')
-rw-r--r--clatd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clatd.c b/clatd.c
index faeb679..ca21984 100644
--- a/clatd.c
+++ b/clatd.c
@@ -496,6 +496,9 @@ int main(int argc, char **argv) {
// run under a regular user
drop_root();
+ //check HW features and disable checksum validation if already handled by hardware
+ rx_checksum_offloaded = check_csum_offload(uplink_interface);
+
// we can create tun devices as non-root because we're in the VPN group.
tunnel.fd4 = tun_open();
if(tunnel.fd4 < 0) {