Subject: ifmedia change
To: None <tech-kern@netbsd.org>
From: Johan Danielsson <joda@pdc.kth.se>
List: tech-kern
Date: 02/20/2001 20:14:36
If you do `ifconfig foo0 auto' when foo0 doesn't do auto you get a
`Device not configured' error, which isn't very obvious.

The following would change it to `Invalid argument', which is more
helpful. Another way would be to make ifconfig recognise this case.
Any comments on this?

/Johan

--- if_media.c	2001/01/17 19:04:03	1.12
+++ if_media.c	2001/02/20 19:08:17
@@ -247,7 +247,7 @@
 				    newmedia);
 			}
 #endif
-			return (ENXIO);
+			return (EINVAL);
 		}
 
 		/*