summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/application.h
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2022-06-30 11:28:37 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2022-06-30 11:28:37 +0000
commit64bec661c783f8e6da1dc2edb889b41f11fb2cdb (patch)
treeae4d9b8e324a14422b926c8459bed71eaadac0f1 /usr.sbin/snmpd/application.h
parenta952668e771909c10f279c90de51ca0768fbdd6e (diff)
Introduce a blocklist backend and keyword.
This allows the admin to specify a full region of the OID tree to be blocked and simply returns NOSUCHOBJECT/ENDOFMIBVIEW. This deprecates filter-pf-addresses in favour of: blocklist pfTblAddrTable OK tb@
Diffstat (limited to 'usr.sbin/snmpd/application.h')
-rw-r--r--usr.sbin/snmpd/application.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/application.h b/usr.sbin/snmpd/application.h
index e65c6e74013..fd5b8146335 100644
--- a/usr.sbin/snmpd/application.h
+++ b/usr.sbin/snmpd/application.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: application.h,v 1.1 2022/01/19 10:59:35 martijn Exp $ */
+/* $OpenBSD: application.h,v 1.2 2022/06/30 11:28:36 martijn Exp $ */
/*
* Copyright (c) 2021 Martijn van Duren <martijn@openbsd.org>
@@ -133,3 +133,7 @@ struct ber_element *appl_exception(enum appl_exception);
/* application_legacy.c */
void appl_legacy_init(void);
void appl_legacy_shutdown(void);
+
+/* application_blocklist.c */
+void appl_blocklist_init(void);
+void appl_blocklist_shutdown(void);