summaryrefslogtreecommitdiff
path: root/sys/net/if_pflog.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-12-20 02:53:03 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-12-20 02:53:03 +0000
commit42bb4abb0daa17ed7ce6b235f9f0f8f59c020644 (patch)
treeec7bad3d71a8c832cec82cc33d727ed1d38c660e /sys/net/if_pflog.c
parent1eb9eea193d15734fb92ea2c17465f6fb5641ec5 (diff)
return with ENOTTY instead of EINVAL for unknown ioctl requests.
ok claudio@ krw@ jason@ dlg@
Diffstat (limited to 'sys/net/if_pflog.c')
-rw-r--r--sys/net/if_pflog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c
index 1517563bf1a..e8dd67979af 100644
--- a/sys/net/if_pflog.c
+++ b/sys/net/if_pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflog.c,v 1.26 2007/10/18 21:58:18 mpf Exp $ */
+/* $OpenBSD: if_pflog.c,v 1.27 2007/12/20 02:53:02 brad Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -198,7 +198,7 @@ pflogioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
ifp->if_flags &= ~IFF_RUNNING;
break;
default:
- return (EINVAL);
+ return (ENOTTY);
}
return (0);