mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
pf: add COMPAT_FREEBSD13 for DIOCKEEPCOUNTERS
DIOCKEEPCOUNTERS used to overlap with DIOCGIFSPEEDV0, which has been fixed in 14, but remains in stable/12 and stable/13. Support the old, overlapping, call under COMPAT_FREEBSD13. Reviewed by: jhb Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D33001
This commit is contained in:
parent
4e85b64890
commit
8e492101ec
@ -1753,6 +1753,7 @@ struct pfioc_iface {
|
||||
#define DIOCGETSYNCOOKIES _IOWR('D', 94, struct pfioc_nv)
|
||||
#define DIOCSETSYNCOOKIES _IOWR('D', 95, struct pfioc_nv)
|
||||
#define DIOCKEEPCOUNTERS _IOWR('D', 96, struct pfioc_nv)
|
||||
#define DIOCKEEPCOUNTERS_FREEBSD13 _IOWR('D', 92, struct pfioc_nv)
|
||||
|
||||
struct pf_ifspeed_v0 {
|
||||
char ifname[IFNAMSIZ];
|
||||
|
@ -4665,6 +4665,9 @@ pfioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct thread *td
|
||||
pf_kill_srcnodes((struct pfioc_src_node_kill *)addr);
|
||||
break;
|
||||
|
||||
#ifdef COMPAT_FREEBSD13
|
||||
case DIOCKEEPCOUNTERS_FREEBSD13:
|
||||
#endif
|
||||
case DIOCKEEPCOUNTERS:
|
||||
error = pf_keepcounters((struct pfioc_nv *)addr);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user