mirror of
https://github.com/opnsense/src.git
synced 2026-03-28 21:53:16 -04:00
pf: renumber DIOCKEEPCOUNTERS
We accidentally had two ioctls use the same base number
(DIOCKEEPCOUNTERS and DIOCGIFSPEEDV{0,1}). We get away with that on most
platforms because the size of the argument structures is different.
This does break CHERI, and is generally a bad idea anyway.
Renumber to avoid this collision.
Reported by: jhb
This commit is contained in:
parent
4c0c353d0e
commit
047c4e365d
1 changed files with 3 additions and 4 deletions
|
|
@ -1747,10 +1747,12 @@ struct pfioc_iface {
|
|||
#define DIOCSETIFFLAG _IOWR('D', 89, struct pfioc_iface)
|
||||
#define DIOCCLRIFFLAG _IOWR('D', 90, struct pfioc_iface)
|
||||
#define DIOCKILLSRCNODES _IOWR('D', 91, struct pfioc_src_node_kill)
|
||||
#define DIOCKEEPCOUNTERS _IOWR('D', 92, struct pfioc_nv)
|
||||
#define DIOCGIFSPEEDV0 _IOWR('D', 92, struct pf_ifspeed_v0)
|
||||
#define DIOCGIFSPEEDV1 _IOWR('D', 92, struct pf_ifspeed_v1)
|
||||
#define DIOCGETSTATESV2 _IOWR('D', 93, struct pfioc_states_v2)
|
||||
#define DIOCGETSYNCOOKIES _IOWR('D', 94, struct pfioc_nv)
|
||||
#define DIOCSETSYNCOOKIES _IOWR('D', 95, struct pfioc_nv)
|
||||
#define DIOCKEEPCOUNTERS _IOWR('D', 96, struct pfioc_nv)
|
||||
|
||||
struct pf_ifspeed_v0 {
|
||||
char ifname[IFNAMSIZ];
|
||||
|
|
@ -1767,9 +1769,6 @@ struct pf_ifspeed_v1 {
|
|||
/* Latest version of struct pf_ifspeed_vX */
|
||||
#define PF_IFSPEED_VERSION 1
|
||||
|
||||
#define DIOCGIFSPEEDV0 _IOWR('D', 92, struct pf_ifspeed_v0)
|
||||
#define DIOCGIFSPEEDV1 _IOWR('D', 92, struct pf_ifspeed_v1)
|
||||
|
||||
/*
|
||||
* Compatibility and convenience macros
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue