icmp: hide icmp_bandlimit_uninit() under VIMAGE

The uninitialization may be executed only on a kernel with VIMAGE.

Reviewed by:		kp, tuexen, zlei
Differential Revision:	https://reviews.freebsd.org/D44476

(cherry picked from commit 9d7f17d746)
This commit is contained in:
Gleb Smirnoff 2024-03-24 09:13:23 -07:00 committed by Zhenlei Huang
parent 2193c63f9a
commit c04006ea03

View file

@ -1118,6 +1118,7 @@ icmp_bandlimit_init(void)
VNET_SYSINIT(icmp_bandlimit, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY,
icmp_bandlimit_init, NULL);
#ifdef VIMAGE
static void
icmp_bandlimit_uninit(void)
{
@ -1127,6 +1128,7 @@ icmp_bandlimit_uninit(void)
}
VNET_SYSUNINIT(icmp_bandlimit, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD,
icmp_bandlimit_uninit, NULL);
#endif
int
badport_bandlim(int which)