freebsd-skq/sys/net
Ed Schouten 136600fe59 Change bpf(4) to use the cdevpriv API.
Right now the bpf(4) driver uses the cloning API to generate /dev/bpf%u.
When an application such as tcpdump needs a BPF, it opens /dev/bpf0,
/dev/bpf1, etc. until it opens the first available device node. We used
this approach, because our devfs implementation didn't allow
per-descriptor data.

Now that we can, make it use devfs_get_cdevpriv() to obtain the private
data. To remain compatible with the existing implementation, add a
symlink from /dev/bpf0 to /dev/bpf. I've already changed libpcap to
compile with HAVE_CLONING_BPF, which makes it use /dev/bpf. There may be
other applications in the base system (dhclient) that use the loop to
obtain a valid bpf.

Discussed on:	src-committers
Approved by:	csjp
2008-08-13 15:41:21 +00:00
..
bpf_buffer.c Fill in BPF sysctl descriptions. 2008-07-25 23:58:09 +00:00
bpf_buffer.h Introduce support for zero-copy BPF buffering, which reduces the 2008-03-24 13:49:17 +00:00
bpf_filter.c Improve convergence of bpf_filter.c toward style(9). 2008-03-09 21:13:43 +00:00
bpf_jitter.c
bpf_jitter.h
bpf_zerocopy.c Make sure we are clearing the ZBUF_FLAG_IMMUTABLE any time a free buffer 2008-07-05 20:11:28 +00:00
bpf_zerocopy.h Make sure we are clearing the ZBUF_FLAG_IMMUTABLE any time a free buffer 2008-07-05 20:11:28 +00:00
bpf.c Change bpf(4) to use the cdevpriv API. 2008-08-13 15:41:21 +00:00
bpf.h Add a new ioctl for changing the read filter (BIOCSETFNR). This is 2008-07-07 09:25:49 +00:00
bpfdesc.h Remove trailing ';' in BPFD_LOCK_ASSERT macro. 2008-08-01 22:08:14 +00:00
bridgestp.c Fix spelling. 2007-12-09 20:47:12 +00:00
bridgestp.h Fix spelling. 2007-12-09 20:47:12 +00:00
bsd_comp.c Merge first in a series of TrustedBSD MAC Framework KPI changes 2007-10-24 19:04:04 +00:00
ethernet.h Spelling and capitalization fixes. 2008-05-16 03:13:36 +00:00
fddi.h
firewire.h
ieee8023ad_lacp.c Switch the LACP state machine over to its own mutex to protect the internals, 2008-03-16 19:25:30 +00:00
ieee8023ad_lacp.h Remove extra semicolons. 2008-03-17 01:26:44 +00:00
if_arc.h
if_arcsubr.c
if_arp.h
if_atm.h
if_atmsubr.c Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
if_bridge.c Be smarter about disabling interface capabilities. TOE/TSO/TXCSUM will only be 2008-07-03 15:58:30 +00:00
if_bridgevar.h Add an option to limit the number of source MACs that can be behind a bridge 2007-11-04 08:32:27 +00:00
if_clone.c
if_clone.h
if_disc.c Add a comment explaining why disc(4) bears the IFF_LOOPBACK flag. 2007-10-27 19:57:41 +00:00
if_dl.h
if_edsc.c Give a hint that softc can contain many things besides ifp. 2007-03-26 09:05:10 +00:00
if_ef.c Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT. 2008-03-25 09:39:02 +00:00
if_enc.c Increase statistic counters for enc0 interface when enabled 2008-08-12 09:05:01 +00:00
if_enc.h Increase statistic counters for enc0 interface when enabled 2008-08-12 09:05:01 +00:00
if_ethersubr.c Add missing braces in #if 0ed code. 2008-05-10 18:33:38 +00:00
if_faith.c
if_fddisubr.c Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT. 2008-03-25 09:39:02 +00:00
if_fwsubr.c Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
if_gif.c Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
if_gif.h Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
if_gre.c Add support for actually sending WCCP return packets via GRE. 2008-07-20 21:45:15 +00:00
if_gre.h Add support for the optional key in the GRE header. 2008-06-20 17:26:34 +00:00
if_iso88025subr.c Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
if_lagg.c port % count will never be greater than LAGG_MAX_PORTS so nuke the test. 2008-07-04 05:33:58 +00:00
if_lagg.h Fix two panics in lagg. 2007-10-12 03:03:16 +00:00
if_llc.h
if_loop.c Remove further trailing white space. 2008-08-01 09:41:45 +00:00
if_media.c
if_media.h Make "1000baseT" the description and "1000baseTX" the alias for 2008-08-01 22:13:39 +00:00
if_mib.c
if_mib.h
if_ppp.c Remove NETISR_MPSAFE, which allows specific netisr handlers to be directly 2008-07-04 00:21:38 +00:00
if_ppp.h
if_pppvar.h
if_sl.c Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT. 2008-03-25 09:39:02 +00:00
if_slvar.h
if_sppp.h
if_spppfr.c
if_spppsubr.c Cast the ioctl define to the type of the variable being switched on. 2007-06-10 04:53:13 +00:00
if_stf.c Add code to allow the system to handle multiple routing tables. 2008-05-09 23:03:00 +00:00
if_stf.h
if_tap.c Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
if_tap.h
if_tapvar.h
if_tun.c Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
if_tun.h
if_types.h Remove IPX over IP tunneling support, which allows IPX routing over IP 2007-06-13 14:01:43 +00:00
if_var.h Introduce locking around use of ifindex_table, whose use was previously 2008-06-26 23:05:28 +00:00
if_vlan_var.h Prepare for 802.1p: 2007-02-28 22:05:30 +00:00
if_vlan.c Add event notification at attach/detach so the NIC 2008-07-14 18:40:21 +00:00
if.c Introduce locking around use of ifindex_table, whose use was previously 2008-06-26 23:05:28 +00:00
if.h Trim some noise from some #ifdef's. This had leaked into the compat32 2008-07-30 21:01:51 +00:00
iso88025.h
netisr.c Remove NETISR_MPSAFE, which allows specific netisr handlers to be directly 2008-07-04 00:21:38 +00:00
netisr.h Remove NETISR_MPSAFE, which allows specific netisr handlers to be directly 2008-07-04 00:21:38 +00:00
pfil.c pfil(9) locking take 3: Switch to rmlock(9) 2007-11-25 12:41:47 +00:00
pfil.h pfil(9) locking take 3: Switch to rmlock(9) 2007-11-25 12:41:47 +00:00
pfkeyv2.h Commit the change from FAST_IPSEC to IPSEC. The FAST_IPSEC 2007-07-03 12:13:45 +00:00
ppp_comp.h
ppp_deflate.c
ppp_defs.h
ppp_tty.c
radix_mpath.c When RADIX_MPATH is enabled, the route selection is not rotating 2008-05-30 09:34:35 +00:00
radix_mpath.h When RADIX_MPATH is enabled, the route selection is not rotating 2008-05-30 09:34:35 +00:00
radix.c This patch provides the back end support for equal-cost multi-path 2008-04-13 05:45:14 +00:00
radix.h This patch provides the back end support for equal-cost multi-path 2008-04-13 05:45:14 +00:00
raw_cb.c Rather than checking for a NULL so_pcb in raw_attach(), assert that 2008-07-09 18:41:31 +00:00
raw_cb.h Remove unused support for local and foreign addresses in generic raw 2008-07-09 15:48:16 +00:00
raw_usrreq.c Remove unused support for local and foreign addresses in generic raw 2008-07-09 15:48:16 +00:00
route.c Add the ability to add new addresses for interfacesto just one FIB 2008-07-27 01:29:28 +00:00
route.h move a #define from a place it shouldn't have been to a place it should 2008-05-10 04:32:58 +00:00
rtsock.c Remove unused support for local and foreign addresses in generic raw 2008-07-09 15:48:16 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h