added next field to bpf_if for dynamic allocation
authorSteven McCanne <mccanne@ucbvax.Berkeley.EDU>
Mon, 6 May 1991 13:52:37 +0000 (05:52 -0800)
committerSteven McCanne <mccanne@ucbvax.Berkeley.EDU>
Mon, 6 May 1991 13:52:37 +0000 (05:52 -0800)
SCCS-vsn: sys/net/bpfdesc.h 1.3

usr/src/sys/net/bpfdesc.h

index 9cd1d98..e36fbe9 100644 (file)
@@ -63,18 +63,10 @@ struct bpf_d {
  * Descriptor associated with each attached hardware interface.
  */
 struct bpf_if {
  * Descriptor associated with each attached hardware interface.
  */
 struct bpf_if {
-       /* List of descriptors listening on this interface. */
-       struct bpf_d *bif_dlist;
-
-       /* Pointer to the device driver's softc bpf field. */
-       struct bpf_if **bif_driverp;
-
-       /* Device parameters, see bpf.h. */
-       struct bpf_devp bif_devp;
-
-       /* Length of bpf header (bpf_hdr + padding). */
-       u_int bif_hdrlen;
-
-       /* 'ifnet' of associated interface. */
-       struct ifnet *bif_ifp;
+       struct bpf_if *bif_next;        /* list of all interfaces */
+       struct bpf_d *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) */
+       struct ifnet *bif_ifp;          /* correspoding interface */
 };
 };