summaryrefslogtreecommitdiff
path: root/sys/net/bpfdesc.h
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-05-28 08:16:24 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-05-28 08:16:24 +0000
commitc2888a975d59102b19a3bfe63b7e9ac0f50fe419 (patch)
tree012dd3bdc3c642e4288a59bbaa7d165fc22a7b7d /sys/net/bpfdesc.h
parent427354c6146786ff2e7c23b0c93956082f11ff1a (diff)
bpf device cloning.
Now to have more bpf devices just add device nodes in /dev, no need to recompile kernel anymore. Code from form@pdp-11.org.ru, some help from markus@. ok markus@ canacar@ deraadt@
Diffstat (limited to 'sys/net/bpfdesc.h')
-rw-r--r--sys/net/bpfdesc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h
index 57a5081cb13..4087eb2685d 100644
--- a/sys/net/bpfdesc.h
+++ b/sys/net/bpfdesc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpfdesc.h,v 1.12 2004/05/08 20:54:13 canacar Exp $ */
+/* $OpenBSD: bpfdesc.h,v 1.13 2004/05/28 08:16:23 grange Exp $ */
/* $NetBSD: bpfdesc.h,v 1.11 1995/09/27 18:30:42 thorpej Exp $ */
/*
@@ -84,6 +84,8 @@ struct bpf_d {
uid_t bd_sigeuid; /* euid for process that set pgid */
u_int bd_ref; /* reference count */
struct selinfo bd_sel; /* bsd select info */
+ int bd_unit; /* logical unit number */
+ LIST_ENTRY(bpf_d) bd_list; /* descriptor list */
};
/*