summaryrefslogtreecommitdiff
path: root/sys/net/if_gif.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_gif.c
parent1eb9eea193d15734fb92ea2c17465f6fb5641ec5 (diff)
return with ENOTTY instead of EINVAL for unknown ioctl requests.
ok claudio@ krw@ jason@ dlg@
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r--sys/net/if_gif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 56a377123dd..4dc83de66a5 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.46 2007/09/15 16:43:51 henning Exp $ */
+/* $OpenBSD: if_gif.c,v 1.47 2007/12/20 02:53:02 brad Exp $ */
/* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */
/*
@@ -617,7 +617,7 @@ gif_ioctl(ifp, cmd, data)
break;
default:
- error = EINVAL;
+ error = ENOTTY;
break;
}
bad: