summaryrefslogtreecommitdiff
path: root/net/bpfstat
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2005-07-31 01:21:44 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2005-07-31 01:21:44 +0000
commit4ae1da5b8f24c37faddc1aec10fb7e3a065455a4 (patch)
treea08ae1f871748456cf438b13e2bef84d322aedae /net/bpfstat
parentadd bpfstat - a program to retrieve bpf statistics (diff)
that file got comitted by error and wasn't meant to get committed... so remove it
Notes
Notes: svn path=/head/; revision=140514
Diffstat (limited to 'net/bpfstat')
-rw-r--r--net/bpfstat/lala57
1 files changed, 0 insertions, 57 deletions
diff --git a/net/bpfstat/lala b/net/bpfstat/lala
deleted file mode 100644
index 24224838ae13..000000000000
--- a/net/bpfstat/lala
+++ /dev/null
@@ -1,57 +0,0 @@
-@@ -33,7 +33,7 @@
- *
- * @(#)bpfdesc.h 8.1 (Berkeley) 6/10/93
- *
-- * $FreeBSD: /tmp/pcvs/ports/net/bpfstat/Attic/lala,v 1.1 2005-07-31 01:16:03 oliver Exp $
-+ * $FreeBSD: /tmp/pcvs/ports/net/bpfstat/Attic/lala,v 1.1 2005-07-31 01:16:03 oliver Exp $
- */
-
- #ifndef _NET_BPFDESC_H_
-@@ -42,6 +42,8 @@
- #include <sys/callout.h>
- #include <sys/selinfo.h>
- #include <sys/queue.h>
-+#include <sys/conf.h>
-+#include <net/if.h>
-
- /*
- * Descriptor associated with each open bpf file.
-@@ -90,6 +92,9 @@ struct bpf_d {
- struct mtx bd_mtx; /* mutex for this descriptor */
- struct callout bd_callout; /* for BPF timeouts with select */
- struct label *bd_label; /* MAC label for descriptor */
-+ u_long bd_fcount; /* number of packets which matched filter */
-+ pid_t bd_pid; /* PID which created descriptor */
-+ char bd_pcomm[MAXCOMLEN + 1];
- };
-
- /* Values for bd_state */
-@@ -121,6 +126,27 @@ struct bpf_if {
- u_int bif_hdrlen; /* length of header (with padding) */
- struct ifnet *bif_ifp; /* corresponding interface */
- struct mtx bif_mtx; /* mutex for interface */
-+};
-+
-+/*
-+ * External representation of the bpf descriptor
-+ */
-+struct xbpf_d {
-+ u_char bd_promisc;
-+ u_char bd_immediate;
-+ int bd_hdrcmplt;
-+ int bd_seesent;
-+ int bd_async;
-+ u_long bd_rcount;
-+ u_long bd_dcount;
-+ u_long bd_fcount;
-+ int bd_sig;
-+ int bd_slen;
-+ int bd_hlen;
-+ int bd_bufsize;
-+ pid_t bd_pid;
-+ char bd_ifname[IFNAMSIZ];
-+ char bd_pcomm[MAXCOMLEN + 1];
- };
-
- #define BPFIF_LOCK(bif) mtx_lock(&(bif)->bif_mtx)
-