Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf don't auto-unload
details: https://anonhg.NetBSD.org/src/rev/a470244bb09d
branches: trunk
changeset: 785422:a470244bb09d
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 13 02:34:37 2013 +0000
description:
don't auto-unload
diffstat:
sys/net/npf/if_npflog.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 019790561531 -r a470244bb09d sys/net/npf/if_npflog.c
--- a/sys/net/npf/if_npflog.c Wed Mar 13 02:32:05 2013 +0000
+++ b/sys/net/npf/if_npflog.c Wed Mar 13 02:34:37 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_npflog.c,v 1.1 2013/03/10 20:51:44 christos Exp $ */
+/* $NetBSD: if_npflog.c,v 1.2 2013/03/13 02:34:37 christos Exp $ */
/*-
* Copyright (c) 2010-2012 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_npflog.c,v 1.1 2013/03/10 20:51:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_npflog.c,v 1.2 2013/03/13 02:34:37 christos Exp $");
#include <sys/types.h>
#include <sys/module.h>
@@ -50,7 +50,7 @@
#include <net/if_types.h>
#include <net/bpf.h>
-MODULE(MODULE_CLASS_DRIVER, if_npflog, NULL);
+MODULE(MODULE_CLASS_DRIVER, if_npflog);
typedef struct npflog_softc {
LIST_ENTRY(npflog_softc) sc_entry;
@@ -162,6 +162,9 @@
npflogdetach();
break;
+ case MODULE_CMD_AUTOUNLOAD:
+ return EBUSY;
+
default:
return ENOTTY;
}
Home |
Main Index |
Thread Index |
Old Index