diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-09-09 11:55:38 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-09-09 11:55:38 +0000 |
commit | 4e08e896bf4a7610e3cd35702d76aaddece84cab (patch) | |
tree | cf5aa96e5ba50862468a9fbcd0c0283b96ec4036 /sys/net/bpfdesc.h | |
parent | d82d43fd6db4f6b3d5c8fa17a5d8e808ec1c5fe4 (diff) |
convert bpf to using an srp list for the list of descriptors.
this replaces the hand rolled list. the code has always used hand
rolled lists, but that gets a bit cumbersome when theyre SRPs.
requested ages ago by mpi@
Diffstat (limited to 'sys/net/bpfdesc.h')
-rw-r--r-- | sys/net/bpfdesc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h index bd51e2125a7..b173f75deb1 100644 --- a/sys/net/bpfdesc.h +++ b/sys/net/bpfdesc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bpfdesc.h,v 1.27 2015/09/01 04:50:27 dlg Exp $ */ +/* $OpenBSD: bpfdesc.h,v 1.28 2015/09/09 11:55:37 dlg Exp $ */ /* $NetBSD: bpfdesc.h,v 1.11 1995/09/27 18:30:42 thorpej Exp $ */ /* @@ -48,7 +48,7 @@ * Descriptor associated with each open bpf file. */ struct bpf_d { - struct srp bd_next; /* Linked list of descriptors */ + struct srpl_entry bd_next; /* Linked list of descriptors */ /* * Buffer slots: two mbuf clusters buffer the incoming packets. * The model has three slots. Sbuf is always occupied. @@ -98,7 +98,7 @@ struct bpf_d { */ struct bpf_if { struct bpf_if *bif_next; /* list of all interfaces */ - struct srp bif_dlist; /* descriptor list */ + struct srpl bif_dlist; /* descriptor list */ struct bpf_if **bif_driverp; /* pointer into softc */ u_int bif_dlt; /* link layer type */ u_int bif_hdrlen; /* length of header (with padding) */ |