From owner-freebsd-current Fri Oct 23 12:58:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA04234 for freebsd-current-outgoing; Fri, 23 Oct 1998 12:58:46 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zone.syracuse.net (zone.syracuse.net [205.232.47.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04226 for ; Fri, 23 Oct 1998 12:58:41 -0700 (PDT) (envelope-from green@zone.syracuse.net) Received: from localhost (green@localhost) by zone.syracuse.net (8.8.8/8.8.7) with ESMTP id PAA20565 for ; Fri, 23 Oct 1998 15:57:53 -0400 (EDT) Date: Fri, 23 Oct 1998 15:57:53 -0400 (EDT) From: Brian Feldman To: current@FreeBSD.ORG Subject: Let's get if_plip.c to shut up. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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