bpf.c (121816) | bpf.c (122352) |
---|---|
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 121816 2003-10-31 18:32:15Z brooks $ | 40 * $FreeBSD: head/sys/net/bpf.c 122352 2003-11-09 09:17:26Z tanimura $ |
41 */ 42 43#include "opt_bpf.h" 44#include "opt_mac.h" 45#include "opt_netgraph.h" 46 47#include <sys/types.h> 48#include <sys/param.h> --- 474 unchanged lines hidden (view full) --- 523 if (d->bd_state == BPF_WAITING) { 524 callout_stop(&d->bd_callout); 525 d->bd_state = BPF_IDLE; 526 } 527 wakeup(d); 528 if (d->bd_async && d->bd_sig && d->bd_sigio) 529 pgsigio(&d->bd_sigio, d->bd_sig, 0); 530 | 41 */ 42 43#include "opt_bpf.h" 44#include "opt_mac.h" 45#include "opt_netgraph.h" 46 47#include <sys/types.h> 48#include <sys/param.h> --- 474 unchanged lines hidden (view full) --- 523 if (d->bd_state == BPF_WAITING) { 524 callout_stop(&d->bd_callout); 525 d->bd_state = BPF_IDLE; 526 } 527 wakeup(d); 528 if (d->bd_async && d->bd_sig && d->bd_sigio) 529 pgsigio(&d->bd_sigio, d->bd_sig, 0); 530 |
531 selwakeup(&d->bd_sel); | 531 selwakeuppri(&d->bd_sel, PRINET); |
532 KNOTE(&d->bd_sel.si_note, 0); 533} 534 535static void 536bpf_timed_out(arg) 537 void *arg; 538{ 539 struct bpf_d *d = (struct bpf_d *)arg; --- 1082 unchanged lines hidden --- | 532 KNOTE(&d->bd_sel.si_note, 0); 533} 534 535static void 536bpf_timed_out(arg) 537 void *arg; 538{ 539 struct bpf_d *d = (struct bpf_d *)arg; --- 1082 unchanged lines hidden --- |