bpf.c (93818) | bpf.c (95883) |
---|---|
1/* 2 * Copyright (c) 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from the Stanford/CMU enet packet filter, 6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed 7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 8 * Berkeley Laboratory. --- 23 unchanged lines hidden (view full) --- 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)bpf.c 8.4 (Berkeley) 1/9/95 39 * | 1/* 2 * Copyright (c) 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from the Stanford/CMU enet packet filter, 6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed 7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 8 * Berkeley Laboratory. --- 23 unchanged lines hidden (view full) --- 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)bpf.c 8.4 (Berkeley) 1/9/95 39 * |
40 * $FreeBSD: head/sys/net/bpf.c 93818 2002-04-04 21:03:38Z jhb $ | 40 * $FreeBSD: head/sys/net/bpf.c 95883 2002-05-01 20:44:46Z alfred $ |
41 */ 42 43#include "opt_bpf.h" 44#include "opt_netgraph.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/conf.h> --- 457 unchanged lines hidden (view full) --- 506 register struct bpf_d *d; 507{ 508 if (d->bd_state == BPF_WAITING) { 509 callout_stop(&d->bd_callout); 510 d->bd_state = BPF_IDLE; 511 } 512 wakeup((caddr_t)d); 513 if (d->bd_async && d->bd_sig && d->bd_sigio) | 41 */ 42 43#include "opt_bpf.h" 44#include "opt_netgraph.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/conf.h> --- 457 unchanged lines hidden (view full) --- 506 register struct bpf_d *d; 507{ 508 if (d->bd_state == BPF_WAITING) { 509 callout_stop(&d->bd_callout); 510 d->bd_state = BPF_IDLE; 511 } 512 wakeup((caddr_t)d); 513 if (d->bd_async && d->bd_sig && d->bd_sigio) |
514 pgsigio(d->bd_sigio, d->bd_sig, 0); | 514 pgsigio(&d->bd_sigio, d->bd_sig, 0); |
515 516 selwakeup(&d->bd_sel); 517} 518 519static void 520bpf_timed_out(arg) 521 void *arg; 522{ --- 904 unchanged lines hidden --- | 515 516 selwakeup(&d->bd_sel); 517} 518 519static void 520bpf_timed_out(arg) 521 void *arg; 522{ --- 904 unchanged lines hidden --- |