Преглед изворни кода

upgrading package: libpcap 0.8.3 -> 0.9.1

Ralf S. Engelschall пре 20 година
родитељ
комит
ba818a64e6
2 измењених фајлова са 2 додато и 24 уклоњено
  1. 0 20
      libpcap/libpcap.patch
  2. 2 4
      libpcap/libpcap.spec

+ 0 - 20
libpcap/libpcap.patch

@@ -1,20 +0,0 @@
-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);
- 
- 	/*

+ 2 - 4
libpcap/libpcap.spec

@@ -32,12 +32,11 @@ Distribution: OpenPKG
 Class:        BASE
 Group:        Network
 License:      GPL
-Version:      0.8.3
-Release:      20041209
+Version:      0.9.1
+Release:      20050706
 
 #   list of sources
 Source0:      http://www.tcpdump.org/release/libpcap-%{version}.tar.gz
-Patch0:       libpcap.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -63,7 +62,6 @@ AutoReqProv:  no
 
 %prep
     %setup -q
-    %patch -p0
 
 %build
     CC="%{l_cc}" \