projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4dfd44
)
[TCP]: syn_flood_warning is only needed if CONFIG_SYN_COOKIES is selected
author
Arnaldo Carvalho de Melo
<acme@mandriva.com>
Wed, 4 Jan 2006 03:58:06 +0000
(
01:58
-0200)
committer
Arnaldo Carvalho de Melo
<acme@mandriva.com>
Wed, 4 Jan 2006 03:58:06 +0000
(
01:58
-0200)
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>
net/ipv4/tcp_ipv4.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/tcp_ipv4.c
b/net/ipv4/tcp_ipv4.c
index 5c70493dff023f9a1052131ec779e127458faa2c..e9f83e5b28ce93a7e2a3e76a878526ec227ad497 100644
(file)
--- 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)
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_buff *skb)
ntohs(skb->h.th->dest));
}
}
+#endif
/*
* Save and compile IPv4 options into the request_sock if needed.