git: 86c4e2d071ca - stable/14 - icmp: remove unused BANDLIM_UNLIMITED
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Sep 2025 18:58:59 UTC
The branch stable/14 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=86c4e2d071ca335ad4460a3643b4ece9799cfc82
commit 86c4e2d071ca335ad4460a3643b4ece9799cfc82
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-08-11 16:46:08 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-09-05 18:58:34 +0000
icmp: remove unused BANDLIM_UNLIMITED
Reviewed by: Nick Banks
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D51849
(cherry picked from commit 52a94237615c6d3b6c928e41d9c7168ff6979996)
---
sys/netinet/icmp_var.h | 1 -
sys/netinet/ip_icmp.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/netinet/icmp_var.h b/sys/netinet/icmp_var.h
index f0d832a37261..02cd8c85f1b4 100644
--- a/sys/netinet/icmp_var.h
+++ b/sys/netinet/icmp_var.h
@@ -88,7 +88,6 @@ void kmod_icmpstat_inc(int statnum);
SYSCTL_DECL(_net_inet_icmp);
extern int badport_bandlim(int);
-#define BANDLIM_UNLIMITED -1
#define BANDLIM_ICMP_UNREACH 0
#define BANDLIM_ICMP_ECHO 1
#define BANDLIM_ICMP_TSTAMP 2
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index 644b87858f17..fffe7e280a8e 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -1189,7 +1189,7 @@ badport_bandlim(int which)
{
int64_t pps;
- if (V_icmplim == 0 || which == BANDLIM_UNLIMITED)
+ if (V_icmplim == 0)
return (0);
KASSERT(which >= 0 && which < BANDLIM_MAX,