Skip to content

Commit

Permalink
[TCP]: syn_flood_warning is only needed if CONFIG_SYN_COOKIES is sele…
Browse files Browse the repository at this point in the history
…cted

  CC      net/ipv4/tcp_ipv4.o
  /pub/scm/linux/kernel/git/acme/net-2.6/net/ipv4/tcp_ipv4.c:665: warning:
  'syn_flood_warning' defined but not used

Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 4, 2006
1 parent e4dfd44 commit 80e40da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ static void tcp_v4_reqsk_destructor(struct request_sock *req)
kfree(inet_rsk(req)->opt);
}

#ifdef CONFIG_SYN_COOKIES
static void syn_flood_warning(struct sk_buff *skb)
{
static unsigned long warntime;
Expand All @@ -672,6 +673,7 @@ static void syn_flood_warning(struct sk_buff *skb)
ntohs(skb->h.th->dest));
}
}
#endif

/*
* Save and compile IPv4 options into the request_sock if needed.
Expand Down

0 comments on commit 80e40da

Please sign in to comment.