head 1.3; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.2 OPENPKG_E1_FP:1.2 OPENPKG_2_STABLE_20061018:1.2 OPENPKG_2_STABLE:1.2.0.4 OPENPKG_2_STABLE_BP:1.2 OPENPKG_2_5_SOLID:1.2.0.2 OPENPKG_2_5_SOLID_BP:1.2 OPENPKG_2_4_RELEASE:1.1 OPENPKG_2_4_SOLID:1.1.0.4 OPENPKG_2_4_SOLID_BP:1.1 OPENPKG_CW_FP:1.1 OPENPKG_2_3_RELEASE:1.1 OPENPKG_2_3_SOLID:1.1.0.2 OPENPKG_2_3_SOLID_BP:1.1; locks; strict; comment @# @; 1.3 date 2007.12.19.09.58.08; author rse; state Exp; branches; next 1.2; commitid zuveDbFWzkSDB1Ks; 1.2 date 2005.07.06.17.50.01; author rse; state dead; branches; next 1.1; 1.1 date 2004.12.09.22.11.42; author rse; state Exp; branches; next ; desc @@ 1.3 log @try to workaround issues with latest Flex @ text @Index: scanner.l --- scanner.l.orig 2007-06-11 21:34:28 +0200 +++ scanner.l 2007-12-19 10:56:36 +0100 @@@@ -81,13 +81,6 @@@@ B ([0-9A-Fa-f][0-9A-Fa-f]?) W ([0-9A-Fa-f][0-9A-Fa-f]?[0-9A-Fa-f]?[0-9A-Fa-f]?) -%a 18400 -%o 21500 -%e 7600 -%k 4550 -%p 27600 -%n 2000 - V680 {W}:{W}:{W}:{W}:{W}:{W}:{W}:{W} V670 ::{W}:{W}:{W}:{W}:{W}:{W}:{W} @ 1.2 log @upgrading package: libpcap 0.8.3 -> 0.9.1 @ text @d1 6 a6 18 libpcap opens /dev/bpfX as O_RDONLY rather than O_RDWR. This affects applications which open BPF using pcap_open_live(), then get the fileno and try to use it to send packets. An example application having this problem with BGP is UCARP (http://www.ucarp.org/), which silently fails to send packets. See also: http://www.freebsd.org/cgi/query-pr.cgi?pr=72814 Index: pcap-bpf.c --- pcap-bpf.c.orig 2003-11-22 01:06:28 +0100 +++ pcap-bpf.c 2004-12-09 22:57:15 +0100 @@@@ -468,6 +468,8 @@@@ do { (void)snprintf(device, sizeof(device), "/dev/bpf%d", n++); - fd = open(device, O_RDONLY); + fd = open(device, O_RDWR); + if (fd < 0 && errno == EACCES) + fd = open(device, O_RDONLY); } while (fd < 0 && errno == EBUSY); d8 10 a17 1 /* @ 1.1 log @modifying package: libpcap-0.8.3 20040331 -> 20041209 @ text @@