Date: Fri, 23 Oct 1998 15:57:53 -0400 (EDT) From: Brian Feldman <green@zone.syracuse.net> To: current@FreeBSD.ORG Subject: Let's get if_plip.c to shut up. Message-ID: <Pine.BSF.4.05.9810231546530.20457-100000@zone.syracuse.net>
next in thread | raw e-mail | index | archive | help
Okay, ifconfig -a generates lotsa LP:ioctl(0xc0286938), and I got it down
to SIOCGIFMEDIA. Well, that shouldn't even be valid on plip, should it?
Well, no! So handle that case.
Diff follows.
Cheers,
Brian Feldman
--- /usr/src/sys/dev/ppbus/if_plip.c Wed Oct 7 10:42:24 1998
+++ if_plip.c Fri Oct 23 15:52:54 1998
@@ -393,6 +393,13 @@
}
break;
+ case SIOCGIFMEDIA: /*
+ * This should be an invalid case, so at least get
+ * the driver to SHUT UP ABOUT IT! Yay, no more
+ * LP:ioctl(0xc0286938)!
+ */
+ return EINVAL;
+
default:
lprintf("LP:ioctl(0x%lx)\n", cmd);
return EINVAL;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9810231546530.20457-100000>
