bpf.c (6f3544cd7084abbadd83637993a4f41fd30e6ccd) bpf.c (6aba400a7055ed2427c6aa297774fb91f5d8db79)
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.

--- 638 unchanged lines hidden (view full) ---

647 callout_stop(&d->bd_callout);
648 d->bd_state = BPF_IDLE;
649 BPFD_UNLOCK(d);
650 funsetown(&d->bd_sigio);
651 mtx_lock(&bpf_mtx);
652 if (d->bd_bif)
653 bpf_detachd(d);
654 mtx_unlock(&bpf_mtx);
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.

--- 638 unchanged lines hidden (view full) ---

647 callout_stop(&d->bd_callout);
648 d->bd_state = BPF_IDLE;
649 BPFD_UNLOCK(d);
650 funsetown(&d->bd_sigio);
651 mtx_lock(&bpf_mtx);
652 if (d->bd_bif)
653 bpf_detachd(d);
654 mtx_unlock(&bpf_mtx);
655 selwakeuppri(&d->bd_sel, PRINET);
656#ifdef MAC
657 mac_bpfdesc_destroy(d);
658#endif /* MAC */
655#ifdef MAC
656 mac_bpfdesc_destroy(d);
657#endif /* MAC */
658 seldrain(&d->bd_sel);
659 knlist_destroy(&d->bd_sel.si_note);
660 callout_drain(&d->bd_callout);
661 bpf_freed(d);
662 free(d, M_BPF);
663}
664
665/*
666 * Open ethernet device. Returns ENXIO for illegal minor device number,

--- 1880 unchanged lines hidden ---
659 knlist_destroy(&d->bd_sel.si_note);
660 callout_drain(&d->bd_callout);
661 bpf_freed(d);
662 free(d, M_BPF);
663}
664
665/*
666 * Open ethernet device. Returns ENXIO for illegal minor device number,

--- 1880 unchanged lines hidden ---