summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2008-11-26 18:01:44 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2008-11-26 18:01:44 +0000
commita6c13e1ab4255c9bc04b6526e72e4658e7ac6629 (patch)
tree00a1ef2557dc7f9bb1ad6987a4bcbb87f6912a62 /sys/net
parenta529987a8d6428837e165f359dfeb929ab42365c (diff)
dont have bpf.h expose the kernel ticks variable wherever it is includeing.
it is very confusing like this. ok deraadt@ canacar@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf.c5
-rw-r--r--sys/net/bpf.h5
-rw-r--r--sys/net/if_pflow.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 0172c5d8f85..c2729b17027 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.70 2008/11/09 15:08:26 naddy Exp $ */
+/* $OpenBSD: bpf.c,v 1.71 2008/11/26 18:01:43 dlg Exp $ */
/* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */
/*
@@ -68,6 +68,9 @@
#define PRINET 26 /* interruptible */
+/* from kern/kern_clock.c; incremented each clock tick. */
+extern int ticks;
+
/*
* The default read buffer size is patchable.
*/
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
index fcf4c2588ec..03b04d0c759 100644
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.h,v 1.36 2008/11/09 15:08:26 naddy Exp $ */
+/* $OpenBSD: bpf.h,v 1.37 2008/11/26 18:01:43 dlg Exp $ */
/* $NetBSD: bpf.h,v 1.15 1996/12/13 07:57:33 mikel Exp $ */
/*
@@ -285,7 +285,4 @@ u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
*/
#define BPF_MEMWORDS 16
-extern int ticks; /* from kern/kern_clock.c; incremented each */
- /* clock tick. */
-
#endif /* _NET_BPF_H_ */
diff --git a/sys/net/if_pflow.c b/sys/net/if_pflow.c
index 515a31fed22..fb04229b7f5 100644
--- a/sys/net/if_pflow.c
+++ b/sys/net/if_pflow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflow.c,v 1.7 2008/10/28 15:51:27 gollo Exp $ */
+/* $OpenBSD: if_pflow.c,v 1.8 2008/11/26 18:01:43 dlg Exp $ */
/*
* Copyright (c) 2008 Henning Brauer <henning@openbsd.org>
@@ -91,6 +91,9 @@ struct if_clone pflow_cloner =
extern int ipport_hifirstauto;
extern int ipport_hilastauto;
+/* from kern/kern_clock.c; incremented each clock tick. */
+extern int ticks;
+
void
pflowattach(int npflow)
{