Skip to content

Commit

Permalink
turn off UDP checksums
Browse files Browse the repository at this point in the history
  • Loading branch information
mcr committed Oct 3, 2013
1 parent 827076e commit 9914577
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions network.c
Expand Up @@ -97,6 +97,13 @@ int init_network (void)

#endif

/* turn off UDP checksums */
arg=1;
if (setsockopt(server_socket, SOL_SOCKET, SO_NO_CHECK , (void*)&arg,
sizeof(arg)) ==-1) {
l2tp_log(LOG_INFO, "unable to turn off UDP checksums");
}

#ifdef USE_KERNEL
if (gconfig.forceuserspace)
{
Expand Down

0 comments on commit 9914577

Please sign in to comment.