PCAP Open BPF R/W?
John-Mark Gurney
gurney_j at efn.org
Sun Oct 26 10:46:15 PST 2003
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."
More information about the freebsd-hackers
mailing list