Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/lib/libpcap Pull up revision 1.9 (requested by thorpej ...



details:   https://anonhg.NetBSD.org/src/rev/805766b870be
branches:  netbsd-1-6
changeset: 529183:805766b870be
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Oct 23 12:15:27 2002 +0000

description:
Pull up revision 1.9 (requested by thorpej in ticket #932):
Open the BPF file descriptor as read-write.  Some pcap-using programs
(notably, simulators) expect to be able to send packets on the descriptor,
as well as receive.

diffstat:

 lib/libpcap/pcap-bpf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b1762b97ac49 -r 805766b870be lib/libpcap/pcap-bpf.c
--- a/lib/libpcap/pcap-bpf.c    Wed Oct 23 07:09:15 2002 +0000
+++ b/lib/libpcap/pcap-bpf.c    Wed Oct 23 12:15:27 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcap-bpf.c,v 1.7 1999/07/02 10:05:22 itojun Exp $      */
+/*     $NetBSD: pcap-bpf.c,v 1.7.10.1 2002/10/23 12:15:27 lukem Exp $  */
 
 /*
  * Copyright (c) 1993, 1994, 1995, 1996
@@ -26,7 +26,7 @@
 static const char rcsid[] =
     "@(#) Header: pcap-bpf.c,v 1.29 96/12/31 20:53:40 leres Exp  (LBL)";
 #else
-__RCSID("$NetBSD: pcap-bpf.c,v 1.7 1999/07/02 10:05:22 itojun Exp $");
+__RCSID("$NetBSD: pcap-bpf.c,v 1.7.10.1 2002/10/23 12:15:27 lukem Exp $");
 #endif
 #endif
 
@@ -152,7 +152,7 @@
         */
        do {
                (void)snprintf(device, sizeof device, "/dev/bpf%d", n++);
-               fd = open(device, O_RDONLY);
+               fd = open(device, O_RDWR);
        } while (fd < 0 && errno == EBUSY);
 
        /*



Home | Main Index | Thread Index | Old Index