return an error if given an ioctl which isn't recognized. (Fixes
ifconfig media warning with GENERIC kernels, as well as simply being more correct.)
This commit is contained in:
parent
38c84eeda3
commit
4293c20761
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_eon.c,v 1.20 1997/03/15 18:12:38 is Exp $ */
|
||||
/* $NetBSD: if_eon.c,v 1.21 1998/01/16 18:54:10 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -204,6 +204,9 @@ eonioctl(ifp, cmd, data)
|
|||
ifa->ifa_rtrequest = eonrtrequest;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
splx(s);
|
||||
return (error);
|
||||
|
|
Loading…
Reference in New Issue