Both ticket and number of queues stem from the pf_queues_active list which
is effectively static to pf_ioctl.c and fully protected by the pf lock.
OK sashan
-/* $OpenBSD: pf_ioctl.c,v 1.399 2023/04/27 12:10:30 kn Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.400 2023/04/28 10:19:35 kn Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
struct pf_queuespec *qs;
u_int32_t nr = 0;
- NET_LOCK();
PF_LOCK();
pq->ticket = pf_main_ruleset.rules.active.ticket;
}
pq->nr = nr;
PF_UNLOCK();
- NET_UNLOCK();
break;
}