Skip to contentSkip to conversation

: syn_flood_warning is only needed if CONFIG_SYN_COOKIES is selected

PATCH In review Arnaldo Carvalho de Melo 1 participant 1 message Jan 4, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 : syn_flood_warning is only needed if CONFIG_SYN_COOKIES is selected

Hi David,

Please consider pulling from:

master.kernel.org:/pub/scm/linux/kernel/git/acme/net-2.6.git

Best Regards,

- Arnaldo

tree 31a9a37e00b690edf3e54d61393e364f203549c3
parent e4dfd449c80a41bb615b23d0fc198ba08360a1f8
author Arnaldo Carvalho de Melo <[email protected]> 1136347086 -0200 committer Arnaldo Carvalho de Melo <[email protected]> 1136347086 -0200

[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

------------------------------------------------------------------------------

 tcp_ipv4.c |    2 ++
 1 file changed, 2 insertions(+)

------------------------------------------------------------------------------

net/ipv4/tcp_ipv4.c +2 -0
index 5c70493..e9f83e5 100644
@@ -661,6 +661,7 @@ static void tcp_v4_reqsk_destructor(stru
 	kfree(inet_rsk(req)->opt);
 }
 
+#ifdef CONFIG_SYN_COOKIES
 static void syn_flood_warning(struct sk_buff *skb)
 {
 	static unsigned long warntime;
@@ -672,6 +673,7 @@ static void syn_flood_warning(struct sk_
 		       ntohs(skb->h.th->dest));
 	}
 }
+#endif
 
 /*
  * Save and compile IPv4 options into the request_sock if needed.