Page MenuHomeFreeBSD

D44477.diff
No OneTemporary

D44477.diff

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

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)

Event Timeline