From c2888a975d59102b19a3bfe63b7e9ac0f50fe419 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Fri, 28 May 2004 08:16:24 +0000 Subject: 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@ --- sys/net/bpfdesc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/net/bpfdesc.h') 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 */ }; /* -- cgit v1.2.3