From owner-freebsd-bugs Thu Jun 15 20:40:02 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA09964 for bugs-outgoing; Thu, 15 Jun 1995 20:40:02 -0700 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA09949 ; Thu, 15 Jun 1995 20:40:01 -0700 Date: Thu, 15 Jun 1995 20:40:01 -0700 Message-Id: <199506160340.UAA09949@freefall.cdrom.com> From: Dmitry Khrustalev Reply-To: Dmitry Khrustalev To: freebsd-bugs Subject: kern/522: In-Reply-To: Your message of Fri, 16 Jun 1995 03:38:34 GMT <199506160338.DAA19369@satty.npi.msu.su> Sender: bugs-owner@FreeBSD.org Precedence: bulk >Number: 522 >Category: kern >Synopsis: >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 15 20:40:00 1995 >Originator: Dmitry Khrustalev >Organization: Moscow State University >Release: FreeBSD 2.1.0-Development i386 >Environment: >Description: If interface goes down while bpf is listening on it in promiscuous mode, closing bpf will panic system in bpf.c line 278. panic: bpf: ifpromisc failed >How-To-Repeat: Start tcpdump on ppp interface while pppd is running. Terminate pppd. Terminating tcpdump will result in panic. >Fix: This fix changes current bpf behavior, however current behavior has problems: for example if transmitting a packet results in interface going up, how do we capture this packet? *** bpf.c.orig Fri Jun 16 06:12:07 1995 --- bpf.c Fri Jun 16 06:12:35 1995 *************** *** 1261,1272 **** int pswitch; { struct ifreq ifr; - /* - * If the device is not configured up, we cannot put it in - * promiscuous mode. - */ - if ((ifp->if_flags & IFF_UP) == 0) - return (ENETDOWN); if (pswitch) { if (ifp->if_pcount++ != 0) --- 1261,1266 ---- >Audit-Trail: >Unformatted: