mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 09:40:54 +07:00
[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>
This commit is contained in:
parent
e4dfd449c8
commit
80e40daa47
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user