/*
- * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2014 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
int bd_hlen; /* current length of hold buffer */
int bd_bufsize; /* absolute length of buffers */
+ int bd_hbuf_read; /* reading from hbuf */
struct bpf_if *bd_bif; /* interface descriptor */
u_int32_t bd_rtout; /* Read timeout in 'ticks' */
#if CONFIG_MACF_NET
struct label * bd_label; /* MAC label for descriptor */
#endif
+ int bd_traffic_class; /* traffic service class */
+ int bd_flags; /* flags */
};
/* Values for bd_state */
(bd)->bd_slen != 0))
+/* Values for bd_flags */
+#define BPF_EXTENDED_HDR 0x01 /* process req. the extended header */
+#define BPF_WANT_PKTAP 0x02 /* process knows how to keep DLT_PKTAP private */
+#define BPF_FINALIZE_PKTAP 0x04 /* finalize pktap header on read */
+
/*
* Descriptor associated with each attached hardware interface.
*/
struct bpf_d *bif_dlist; /* descriptor list */
u_int bif_dlt; /* link layer type */
u_int bif_hdrlen; /* length of header (with padding) */
+ u_int bif_exthdrlen; /* length of ext header */
struct ifnet *bif_ifp; /* corresponding interface */
bpf_send_func bif_send;
bpf_tap_func bif_tap;