Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108445693
D44477.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
842 B
Referenced Files
None
Subscribers
None
D44477.diff
View Options
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -1145,6 +1145,11 @@
pps = counter_ratecheck(&V_icmp_rates[which], V_icmplim +
V_icmplim_curr_jitter);
if (pps > 0) {
+ if (V_icmplim_output)
+ log(LOG_NOTICE,
+ "Limiting %s response from %jd to %d packets/sec\n",
+ icmp_rate_descrs[which], (intmax_t )pps,
+ V_icmplim + V_icmplim_curr_jitter);
/*
* Adjust limit +/- to jitter the measurement to deny a
* side-channel port scan as in CVE-2020-25705
@@ -1159,10 +1164,5 @@
}
if (pps == -1)
return (-1);
- if (pps > 0 && V_icmplim_output)
- log(LOG_NOTICE,
- "Limiting %s response from %jd to %d packets/sec\n",
- icmp_rate_descrs[which], (intmax_t )pps, V_icmplim +
- V_icmplim_curr_jitter);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 8:33 PM (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16162309
Default Alt Text
D44477.diff (842 B)
Attached To
Mode
D44477: icmp: when logging ICMP ratelimiting message use correct jitter value
Attached
Detach File
Event Timeline
Log In to Comment