Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.4.4.5
openapi_snmp.h
Go to the documentation of this file.
1 
9 /**********************************************************************
10 *
11 * Copyright 2016-2018 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 ***********************************************************************
26 *
27 * @filename openapi_snmp.h
28 *
29 * @purpose Simple Network Management Protocol (SNMP) Configuration
30 *
31 * @component OPEN
32 *
33 * @create 09/20/2013
34 *
35 * @end
36 *
37 *********************************************************************/
38 #ifndef OPENAPI_SNMP_H_INCLUDED
39 #define OPENAPI_SNMP_H_INCLUDED
40 
41 #include <stdbool.h>
42 #include "openapi_common.h"
43 
45 #define OPENAPI_SNMP_TAG_LIST_TRAP_NOTIFY_STR "TrapNotify"
46 #define OPENAPI_SNMP_TAG_LIST_INFORM_NOTIFY_STR "InformNotify"
47 #define OPENAPI_SNMP_UDP_IPV4_DOMAIN_STR "snmpUDPDomain"
48 #define OPENAPI_SNMP_UDP_IPV6_DOMAIN_STR "transportDomainUdpIpv6"
49 #define OPENAPI_SNMP_SECURITY_MODEL_SNMPV1_STR "snmpv1"
50 #define OPENAPI_SNMP_SECURITY_MODEL_SNMPV2C_STR "snmpv2c"
51 #define OPENAPI_SNMP_DEFAULT_GROUP_READ_STR "DefaultGroupRead"
52 #define OPENAPI_SNMP_DEFAULT_GROUP_WRITE_STR "DefaultGroupWrite"
53 #define OPENAPI_SNMP_DEFAULT_READ_STR "DefaultRead"
54 #define OPENAPI_SNMP_DEFAULT_WRITE_STR "DefaultWrite"
55 #define OPENAPI_SNMP_DEFAULT_SUPER_STR "DefaultSuper"
56 #define OPENAPI_SNMP_DEFAULT_VIEW_STR "Default"
59 typedef enum
60 {
66 
68 typedef enum
69 {
73 
75 typedef enum
76 {
81 
83 typedef enum
84 {
92 
94 typedef enum
95 {
101 
103 typedef enum
104 {
109 
111 typedef enum
112 {
118 
120 typedef enum
121 {
125 
127 typedef enum
128 {
132 
134 typedef enum
135 {
139 
140 
142 typedef enum
143 {
157 
158 /*************************************************************************/
187  open_buffdesc *communityName,
189  open_buffdesc *viewName,
190  open_inet_addr_t addr);
191 
192 /*************************************************************************/
213  open_buffdesc *communityName);
214 
215 /*************************************************************************/
244  open_buffdesc *communityName,
246  open_buffdesc *viewName,
247  open_inet_addr_t *addr,
248  open_buffdesc *nextCommunityName);
249 
250 /*************************************************************************/
277  open_buffdesc *communityName,
278  open_buffdesc *groupName,
279  open_inet_addr_t addr);
280 
281 /*************************************************************************/
308  open_buffdesc *filterName,
309  open_buffdesc *oidTree,
310  OPEN_SNMP_NOTIFY_FILTER_TYPE_t filterType);
311 
312 /*************************************************************************/
337  open_buffdesc *filterName,
338  open_buffdesc *oidTree);
339 
340 /*************************************************************************/
372  open_buffdesc *filterName,
373  open_buffdesc *oidTree,
374  OPEN_SNMP_NOTIFY_FILTER_TYPE_t *filterType,
375  open_buffdesc *nextFilterName,
376  open_buffdesc *nextOidTree);
377 
378 /*************************************************************************/
414  open_buffdesc *groupName,
415  OPEN_SNMP_SECURITY_MODEL_t securityModel,
416  OPEN_SNMP_SECURITY_LEVEL_t securityLevel,
417  open_buffdesc *contextPrefix,
418  open_buffdesc *readView,
419  open_buffdesc *writeView,
420  open_buffdesc *notifyView);
421 
422 /*************************************************************************/
448  open_buffdesc *groupName,
449  OPEN_SNMP_SECURITY_MODEL_t securityModel,
450  OPEN_SNMP_SECURITY_LEVEL_t securityLevel,
451  open_buffdesc *contextPrefix);
452 
453 /*************************************************************************/
496  open_buffdesc *groupName,
497  OPEN_SNMP_SECURITY_MODEL_t *securityModel,
498  OPEN_SNMP_SECURITY_LEVEL_t *securityLevel,
499  open_buffdesc *contextPrefix,
500  open_buffdesc *readView,
501  open_buffdesc *writeView,
502  open_buffdesc *notifyView,
503  open_buffdesc *nextGroupName,
504  open_buffdesc *nextContextPrefix);
505 
506 /*************************************************************************/
525 
526 /*************************************************************************/
544  open_buffdesc *engineId);
545 
546 /*************************************************************************/
571  open_buffdesc *engineId);
572 
573 /*************************************************************************/
619  open_buffdesc *userName,
620  open_buffdesc *groupName,
622  open_buffdesc *authPwd,
623  open_buffdesc *authKey,
625  open_buffdesc *privPwd,
626  open_buffdesc *privKey,
627  open_buffdesc *engineId);
628 
629 /*************************************************************************/
655  open_buffdesc *userName,
656  open_buffdesc *engineId);
657 
658 /*************************************************************************/
695  open_buffdesc *userName,
696  open_buffdesc *engineId,
697  open_buffdesc *groupName,
700  open_buffdesc *nextUserName,
701  open_buffdesc *nextEngineId);
702 
703 /*************************************************************************/
741  open_buffdesc *host,
742  uint32_t serverPort,
743  open_buffdesc *securityName,
744  OPEN_SNMP_SECURITY_MODEL_t securityModel,
745  OPEN_SNMP_SECURITY_LEVEL_t securityLevel,
746  OPEN_SNMP_NOTIFY_TYPE_t notifyType,
747  uint32_t timeout,
748  uint32_t retries,
749  open_buffdesc *filter);
750 
751 /*************************************************************************/
771  open_buffdesc *host,
772  OPEN_SNMP_NOTIFY_TYPE_t notifyType);
773 
774 /*************************************************************************/
808  open_buffdesc *host,
809  uint32_t *serverPort,
810  open_buffdesc *securityName,
811  OPEN_SNMP_SECURITY_MODEL_t *securityModel,
812  OPEN_SNMP_SECURITY_LEVEL_t *securityLevel,
813  OPEN_SNMP_NOTIFY_TYPE_t *notifyType,
814  uint32_t *timeout,
815  uint32_t *retries,
816  open_buffdesc *filter,
817  open_buffdesc *nextHost);
818 
819 /*************************************************************************/
836  uint32_t trapFlag,
837  bool *mode);
838 
839 /*************************************************************************/
862  uint32_t trapFlags,
863  bool mode);
864 
865 /*************************************************************************/
886  uint32_t *intf,
887  OPEN_INTF_TYPE_t *type,
888  open_inet_addr_t *addr);
889 
890 /*************************************************************************/
912  uint32_t intf);
913 
914 /*************************************************************************/
941  open_buffdesc *viewName,
942  open_buffdesc *oidTree,
943  OPEN_SNMP_VIEW_TYPE_t viewType);
944 
945 /*************************************************************************/
971  open_buffdesc *viewName,
972  open_buffdesc *oidTree);
973 
974 /*************************************************************************/
1006  open_buffdesc *viewName,
1007  open_buffdesc *oidTree,
1008  OPEN_SNMP_VIEW_TYPE_t *viewType,
1009  open_buffdesc *nextViewName,
1010  open_buffdesc *nextOidTree);
1011 
1012 /*************************************************************************/
1040  open_buffdesc *name,
1041  open_buffdesc *oidTree,
1043  open_buffdesc *oidString);
1044 
1045 /*************************************************************************/
1074  open_buffdesc *name,
1075  open_buffdesc *oidTree,
1077  open_buffdesc *oidVal);
1078 
1079 /*************************************************************************/
1094  open_buffdesc *sysContact);
1095 
1096 /*************************************************************************/
1117  open_buffdesc *sysContact);
1118 
1119 /*************************************************************************/
1134  open_buffdesc *sysName);
1135 
1136 /*************************************************************************/
1157  open_buffdesc *sysName);
1158 
1159 /*************************************************************************/
1174  open_buffdesc *sysLocation);
1175 
1176 /*************************************************************************/
1196  open_buffdesc *sysLocation);
1197 
1198 #endif /* OPENAPI_SNMP_H_INCLUDED */
1199