Thread (8 messages) flat view 8 messages, 5 authors, 2022-11-15

Re: [PATCH] tcp: Add listening address to SYN flood message

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2022-11-10 23:39:12
Also in: lkml

On Thu, 10 Nov 2022 21:21:06 +1100
Jamie Bainbridge [off-list ref] wrote:
+	    xchg(&queue->synflood_warned, 1) == 0) {
+#if IS_ENABLED(CONFIG_IPV6)
+		if (sk->sk_family == AF_INET6) {
+			net_info_ratelimited("%s: Possible SYN flooding on port %d. IP %pI6c. %s.  Check SNMP counters.\n",
+					proto, sk->sk_num,
+					&sk->sk_v6_rcv_saddr, msg);
+		} else
+#endif
+		{
+			net_info_ratelimited("%s: Possible SYN flooding on port %d. IP %pI4. %s.  Check SNMP counters.\n",
+					proto, sk->sk_num, &sk->sk_rcv_saddr, msg);
+		}
+	}
 
Port number is unsigned not signed.
Message also seems overly wordy to me.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help