snmp_mib_module.h File Reference

SNMP MIB module. More...

#include "mibs/mib_common.h"
#include "snmp/snmp_agent.h"

Go to the source code of this file.

Data Structures

struct  SnmpMibSysGroup
 System group. More...
 
struct  SnmpMibSnmpGroup
 SNMP group. More...
 
struct  SnmpMibSetGroup
 Set group. More...
 
struct  SnmpMibBase
 SNMP MIB base. More...
 

Macros

#define SNMP_MIB_SUPPORT   DISABLED
 
#define SNMP_MIB_SYS_DESCR_SIZE   16
 
#define SNMP_MIB_SYS_OBJECT_ID_SIZE   16
 
#define SNMP_MIB_SYS_CONTACT_SIZE   16
 
#define SNMP_MIB_SYS_NAME_SIZE   16
 
#define SNMP_MIB_SYS_LOCATION_SIZE   16
 
#define SNMP_MIB_INC_COUNTER32(name, value)   snmpMibBase.name += value
 

Enumerations

enum  SnmpMibSysService {
  SNMP_MIB_SYS_SERVICE_PHYSICAL = 0x01, SNMP_MIB_SYS_SERVICE_DATALINK = 0x02, SNMP_MIB_SYS_SERVICE_INTERNET = 0x04, SNMP_MIB_SYS_SERVICE_END_TO_END = 0x08,
  SNMP_MIB_SYS_SERVICE_APPLICATIONS = 0x40
}
 System services. More...
 
enum  SnmpMibEnableAuthenTraps { SNMP_MIB_AUTHEN_TRAPS_ENABLED = 1, SNMP_MIB_AUTHEN_TRAPS_DISABLED = 2 }
 Enabled/disabled state of authentication failure traps. More...
 

Variables

SnmpMibBase snmpMibBase
 SNMP MIB base. More...
 
const MibObject snmpMibObjects []
 SNMP MIB objects. More...
 
const MibModule snmpMibModule
 SNMP MIB module. More...
 

Detailed Description

SNMP MIB module.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file snmp_mib_module.h.

Macro Definition Documentation

◆ SNMP_MIB_INC_COUNTER32

#define SNMP_MIB_INC_COUNTER32 (   name,
  value 
)    snmpMibBase.name += value

Definition at line 82 of file snmp_mib_module.h.

◆ SNMP_MIB_SUPPORT

#define SNMP_MIB_SUPPORT   DISABLED

Definition at line 40 of file snmp_mib_module.h.

◆ SNMP_MIB_SYS_CONTACT_SIZE

#define SNMP_MIB_SYS_CONTACT_SIZE   16

Definition at line 61 of file snmp_mib_module.h.

◆ SNMP_MIB_SYS_DESCR_SIZE

#define SNMP_MIB_SYS_DESCR_SIZE   16

Definition at line 47 of file snmp_mib_module.h.

◆ SNMP_MIB_SYS_LOCATION_SIZE

#define SNMP_MIB_SYS_LOCATION_SIZE   16

Definition at line 75 of file snmp_mib_module.h.

◆ SNMP_MIB_SYS_NAME_SIZE

#define SNMP_MIB_SYS_NAME_SIZE   16

Definition at line 68 of file snmp_mib_module.h.

◆ SNMP_MIB_SYS_OBJECT_ID_SIZE

#define SNMP_MIB_SYS_OBJECT_ID_SIZE   16

Definition at line 54 of file snmp_mib_module.h.

Enumeration Type Documentation

◆ SnmpMibEnableAuthenTraps

Enabled/disabled state of authentication failure traps.

Enumerator
SNMP_MIB_AUTHEN_TRAPS_ENABLED 
SNMP_MIB_AUTHEN_TRAPS_DISABLED 

Definition at line 111 of file snmp_mib_module.h.

◆ SnmpMibSysService

System services.

Enumerator
SNMP_MIB_SYS_SERVICE_PHYSICAL 
SNMP_MIB_SYS_SERVICE_DATALINK 
SNMP_MIB_SYS_SERVICE_INTERNET 
SNMP_MIB_SYS_SERVICE_END_TO_END 
SNMP_MIB_SYS_SERVICE_APPLICATIONS 

Definition at line 97 of file snmp_mib_module.h.

Variable Documentation

◆ snmpMibBase

SnmpMibBase snmpMibBase
extern

SNMP MIB base.

Definition at line 57 of file snmp_mib_module.c.

◆ snmpMibModule

const MibModule snmpMibModule
extern

SNMP MIB module.

Definition at line 448 of file snmp_mib_module.c.

◆ snmpMibObjects

const MibObject snmpMibObjects[]
extern

SNMP MIB objects.

Definition at line 64 of file snmp_mib_module.c.