PERFORCE change 114151 for review

Christian S.J. Peron csjp at FreeBSD.org
Wed Feb 7 04:55:38 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=114151

Change 114151 by csjp at csjp_rnd01 on 2007/02/07 04:54:29

	Dont bother using BIOCSRTIMEOUT in the zerocopy case, all it can do
	is cause problems.

Affected files ...

.. //depot/projects/zcopybpf/src/contrib/libpcap/pcap-bpf.c#6 edit

Differences ...

==== //depot/projects/zcopybpf/src/contrib/libpcap/pcap-bpf.c#6 (text+ko) ====

@@ -1048,7 +1048,7 @@
 #endif
 	/* set timeout */
 	p->to_ms = to_ms;
-	if (to_ms != 0) {
+	if (to_ms != 0 && getenv("BPF_ZERO_COPY") == NULL) {
 		/*
 		 * XXX - is this seconds/nanoseconds in AIX?
 		 * (Treating it as such doesn't fix the timeout


More information about the p4-projects mailing list