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

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

From: Eric Dumazet <edumazet@google.com>
Date: 2022-11-10 23:46:24
Also in: lkml

On Thu, Nov 10, 2022 at 3:39 PM Stephen Hemminger
[off-list ref] wrote:
On Thu, 10 Nov 2022 21:21:06 +1100
Jamie Bainbridge [off-list ref] wrote:
quoted
+         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.
Also, it is customary to use  IP.port format (like most tools, see tcpdump)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help