aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-01-03 22:58:06 -0500
committerArnaldo Carvalho de Melo <acme@mandriva.com>2006-01-03 22:58:06 -0500
commit80e40daa4797a156781d1594642b654eb1c461df (patch)
tree31a9a37e00b690edf3e54d61393e364f203549c3
parente4dfd449c80a41bb615b23d0fc198ba08360a1f8 (diff)
[TCP]: syn_flood_warning is only needed if CONFIG_SYN_COOKIES is selected
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 <acme@mandriva.com>
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 5c70493dff02..e9f83e5b28ce 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -661,6 +661,7 @@ static void tcp_v4_reqsk_destructor(struct request_sock *req)
661 kfree(inet_rsk(req)->opt); 661 kfree(inet_rsk(req)->opt);
662} 662}
663 663
664#ifdef CONFIG_SYN_COOKIES
664static void syn_flood_warning(struct sk_buff *skb) 665static void syn_flood_warning(struct sk_buff *skb)
665{ 666{
666 static unsigned long warntime; 667 static unsigned long warntime;
@@ -672,6 +673,7 @@ static void syn_flood_warning(struct sk_buff *skb)
672 ntohs(skb->h.th->dest)); 673 ntohs(skb->h.th->dest));
673 } 674 }
674} 675}
676#endif
675 677
676/* 678/*
677 * Save and compile IPv4 options into the request_sock if needed. 679 * Save and compile IPv4 options into the request_sock if needed.