icmp: remove unused BANDLIM_UNLIMITED

Reviewed by:		Nick Banks
MFC after:		1 week
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D51849
This commit is contained in:
Michael Tuexen
2025-08-11 18:46:08 +02:00
parent a3eab01304
commit 52a9423761
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -100,7 +100,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
+1 -1
View File
@@ -1181,7 +1181,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,