Skip to content

Commit

Permalink
tcp: Don't make syn cookies initial setting depend on CONFIG_SYSCTL
Browse files Browse the repository at this point in the history
That's extremely non-intuitive, noticed by William Allen Simpson.

And let's make the default be on, it's been suggested by a lot of
people so we'll give it a try.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
davem330 committed Nov 21, 2009
1 parent 8964be4 commit e994b7c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions net/ipv4/tcp_minisocks.c
Expand Up @@ -26,13 +26,7 @@
#include <net/inet_common.h>
#include <net/xfrm.h>

#ifdef CONFIG_SYSCTL
#define SYNC_INIT 0 /* let the user enable it */
#else
#define SYNC_INIT 1
#endif

int sysctl_tcp_syncookies __read_mostly = SYNC_INIT;
int sysctl_tcp_syncookies __read_mostly = 1;
EXPORT_SYMBOL(sysctl_tcp_syncookies);

int sysctl_tcp_abort_on_overflow __read_mostly;
Expand Down

0 comments on commit e994b7c

Please sign in to comment.