summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-24 23:44:01 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-24 23:44:01 +0000
commitba3170cb32e355cb1dab8bd0ee0917c0d922c8d2 (patch)
tree2b486500ce0e5a5b3b9390d311a78f2fd8b963a2 /sys/net
parent068ad287dc3f58ef1a615ed36d248072081330c8 (diff)
rename ioctlbuffer to pfioc.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c6
-rw-r--r--sys/net/pfvar.h22
2 files changed, 14 insertions, 14 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index c71792a665b..60e26c9b3a5 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.13 2001/06/24 23:29:14 dhartmei Exp $ */
+/* $OpenBSD: pf.c,v 1.14 2001/06/24 23:43:59 art Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -508,7 +508,7 @@ int
pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
{
int error = 0;
- struct ioctlbuffer *ub;
+ struct pfioc *ub;
void *kb = NULL;
int s;
@@ -516,7 +516,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
return EACCES;
if ((cmd != DIOCSTART) && (cmd != DIOCSTOP) && (cmd != DIOCCLRSTATES)) {
- ub = (struct ioctlbuffer *)addr;
+ ub = (struct pfioc *)addr;
if (ub == NULL)
return ERROR_INVALID_PARAMETERS;
kb = malloc(ub->size, M_DEVBUF, M_NOWAIT);
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 55142862182..1ca7d44375d 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.4 2001/06/24 21:50:29 deraadt Exp $ */
+/* $OpenBSD: pfvar.h,v 1.5 2001/06/24 23:44:00 art Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -132,7 +132,7 @@ struct status {
* ioctl parameter structure
*/
-struct ioctlbuffer {
+struct pfioc {
u_int32_t size;
u_int16_t entries;
void *buffer;
@@ -144,16 +144,16 @@ struct ioctlbuffer {
#define DIOCSTART _IO ('D', 1)
#define DIOCSTOP _IO ('D', 2)
-#define DIOCSETRULES _IOWR('D', 3, struct ioctlbuffer)
-#define DIOCGETRULES _IOWR('D', 4, struct ioctlbuffer)
-#define DIOCSETNAT _IOWR('D', 5, struct ioctlbuffer)
-#define DIOCGETNAT _IOWR('D', 6, struct ioctlbuffer)
-#define DIOCSETRDR _IOWR('D', 7, struct ioctlbuffer)
-#define DIOCGETRDR _IOWR('D', 8, struct ioctlbuffer)
+#define DIOCSETRULES _IOWR('D', 3, struct pfioc)
+#define DIOCGETRULES _IOWR('D', 4, struct pfioc)
+#define DIOCSETNAT _IOWR('D', 5, struct pfioc)
+#define DIOCGETNAT _IOWR('D', 6, struct pfioc)
+#define DIOCSETRDR _IOWR('D', 7, struct pfioc)
+#define DIOCGETRDR _IOWR('D', 8, struct pfioc)
#define DIOCCLRSTATES _IO ('D', 9)
-#define DIOCGETSTATES _IOWR('D', 10, struct ioctlbuffer)
-#define DIOCSETSTATUSIF _IOWR('D', 11, struct ioctlbuffer)
-#define DIOCGETSTATUS _IOWR('D', 12, struct ioctlbuffer)
+#define DIOCGETSTATES _IOWR('D', 10, struct pfioc)
+#define DIOCSETSTATUSIF _IOWR('D', 11, struct pfioc)
+#define DIOCGETSTATUS _IOWR('D', 12, struct pfioc)
/*
* ioctl errors