summaryrefslogtreecommitdiffstats
path: root/sys/contrib/pf/net/pf_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/pf/net/pf_ioctl.c')
-rw-r--r--sys/contrib/pf/net/pf_ioctl.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c
index 7981a08..6d509c5 100644
--- a/sys/contrib/pf/net/pf_ioctl.c
+++ b/sys/contrib/pf/net/pf_ioctl.c
@@ -477,6 +477,22 @@ pf_thread_create(void *v)
if (kproc_create(pf_purge_thread, NULL, NULL, "pfpurge"))
panic("pfpurge thread");
}
+
+int
+pfopen(struct cdev *dev, int flags, int fmt, struct proc *p)
+{
+ if (dev2unit(dev) >= 1)
+ return (ENXIO);
+ return (0);
+}
+
+int
+pfclose(struct cdev *dev, int flags, int fmt, struct proc *p)
+{
+ if (dev2unit(dev) >= 1)
+ return (ENXIO);
+ return (0);
+}
#endif /* __FreeBSD__ */
struct pf_pool *
OpenPOWER on IntegriCloud