snmp_vacm_mib_impl.h
Go to the documentation of this file.
1 /**
2  * @file snmp_vacm_mib_impl.h
3  * @brief SNMP VACM MIB module implementation
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2019 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneTCP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 1.9.6
29  **/
30 
31 #ifndef _SNMP_VACM_MIB_IMPL_H
32 #define _SNMP_VACM_MIB_IMPL_H
33 
34 //Dependencies
35 #include "mibs/mib_common.h"
36 
37 //C++ guard
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 //SNMP VACM MIB related functions
44 error_t snmpVacmMibLoad(void *context);
45 void snmpVacmMibUnload(void *context);
46 void snmpVacmMibLock(void);
47 void snmpVacmMibUnlock(void);
48 
50  const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen);
51 
53  const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen);
54 
55 error_t snmpVacmMibSetSecurityToGroupEntry(const MibObject *object, const uint8_t *oid,
56  size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
57 
59  const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen);
60 
62  const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen);
63 
64 error_t snmpVacmMibSetAccessEntry(const MibObject *object, const uint8_t *oid,
65  size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
66 
68  const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen);
69 
71  const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen);
72 
73 error_t snmpVacmMibSetViewSpinLock(const MibObject *object, const uint8_t *oid,
74  size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
75 
77  const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen);
78 
79 error_t snmpVacmMibSetViewTreeFamilyEntry(const MibObject *object, const uint8_t *oid,
80  size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit);
81 
83  const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen);
84 
86  const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen);
87 
88 //C++ guard
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif
int bool_t
Definition: compiler_port.h:49
void snmpVacmMibLock(void)
Lock SNMP VACM MIB base.
error_t snmpVacmMibGetNextSecurityToGroupEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next vacmSecurityToGroupEntry object.
error_t snmpVacmMibGetAccessEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmAccessEntry object value.
__start_packed struct @205 MibVariant
Variant data type.
error_t snmpVacmMibSetViewSpinLock(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set vacmViewSpinLock object value.
void snmpVacmMibUnlock(void)
Unlock SNMP VACM MIB base.
error_t snmpVacmMibSetAccessEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set vacmAccessEntry object value.
error_t snmpVacmMibGetNextContextEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next vacmContextEntry object.
error_t
Error codes.
Definition: error.h:42
void snmpVacmMibUnload(void *context)
Unload SNMP VACM MIB module.
error_t snmpVacmMibGetNextViewTreeFamilyEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next vacmViewTreeFamilyEntry object.
error_t snmpVacmMibGetContextEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmContextEntry object value.
uint8_t oid[1]
Definition: mib_common.h:186
error_t snmpVacmMibLoad(void *context)
Load SNMP VACM MIB module.
error_t snmpVacmMibGetViewTreeFamilyEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmViewTreeFamilyEntry object value.
error_t snmpVacmMibInit(void)
SNMP VACM MIB module initialization.
error_t snmpVacmMibGetSecurityToGroupEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmSecurityToGroupEntry object value.
Common definitions for MIB modules.
error_t snmpVacmMibGetNextAccessEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, uint8_t *nextOid, size_t *nextOidLen)
Get next vacmAccessEntry object.
#define MibObject
Definition: mib_common.h:46
error_t snmpVacmMibSetViewTreeFamilyEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set vacmViewTreeFamilyEntry object value.
uint8_t value[]
Definition: dtls_misc.h:150
error_t snmpVacmMibSetSecurityToGroupEntry(const MibObject *object, const uint8_t *oid, size_t oidLen, const MibVariant *value, size_t valueLen, bool_t commit)
Set vacmSecurityToGroupEntry object value.
error_t snmpVacmMibGetViewSpinLock(const MibObject *object, const uint8_t *oid, size_t oidLen, MibVariant *value, size_t *valueLen)
Get vacmViewSpinLock object value.