Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2003 10:46:12 -0800
From:      John-Mark Gurney <gurney_j@efn.org>
To:        Jason Slagle <raistlin@tacorp.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: PCAP Open BPF R/W?
Message-ID:  <20031026184612.GF558@funkthat.com>
In-Reply-To: <20031025115710.Q647@mail.tacorp.net>
References:  <20031025115710.Q647@mail.tacorp.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031026184612.GF558>