From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 26 10:46:14 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAC8316A4B3 for ; Sun, 26 Oct 2003 10:46:14 -0800 (PST) Received: from mail.speakeasy.net (mail9.speakeasy.net [216.254.0.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id E181443F3F for ; Sun, 26 Oct 2003 10:46:13 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 8671 invoked from network); 26 Oct 2003 18:46:13 -0000 Received: from unknown (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail9.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 26 Oct 2003 18:46:13 -0000 Received: from hydrogen.funkthat.com (mzebix@localhost.funkthat.com [127.0.0.1])h9QIkCgP067650; Sun, 26 Oct 2003 10:46:12 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id h9QIkC0k067649; Sun, 26 Oct 2003 10:46:12 -0800 (PST) Date: Sun, 26 Oct 2003 10:46:12 -0800 From: John-Mark Gurney To: Jason Slagle Message-ID: <20031026184612.GF558@funkthat.com> Mail-Followup-To: Jason Slagle , freebsd-hackers@freebsd.org References: <20031025115710.Q647@mail.tacorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031025115710.Q647@mail.tacorp.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: PCAP Open BPF R/W? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2003 18:46:15 -0000 Jason Slagle wrote this message on Sat, Oct 25, 2003 at 11:58 -0400: > Could someone consider applying the following to the in tree pcap? It > makes it possible to write to the pcap fd to send packets out the > interface. Some simulators expect this ability to properly do > networking.. You should probably add code to fall back to O_RDONLY if the O_RDWR open fails incase an admin has sent read permissions on /dev/bpfX, but not write for a group or something. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."