mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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:
parent
2193c63f9a
commit
c04006ea03
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue