if_mib_module.h
Go to the documentation of this file.
1 /**
2  * @file if_mib_module.h
3  * @brief Interfaces Group MIB module
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2026 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 2.6.0
29  **/
30 
31 #ifndef _IF_MIB_MODULE_H
32 #define _IF_MIB_MODULE_H
33 
34 //Dependencies
35 #include "mibs/mib_common.h"
36 
37 //Interfaces Group MIB module support
38 #ifndef IF_MIB_SUPPORT
39  #define IF_MIB_SUPPORT DISABLED
40 #elif (IF_MIB_SUPPORT != ENABLED && IF_MIB_SUPPORT != DISABLED)
41  #error IF_MIB_SUPPORT parameter is not valid
42 #endif
43 
44 //C++ guard
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 
50 /**
51  * @brief Interface types
52  **/
53 
54 typedef enum
55 {
73 
74 
75 /**
76  * @brief The desired state of the interface
77  **/
78 
79 typedef enum
80 {
85 
86 
87 /**
88  * @brief The operational state of the interface
89  **/
90 
91 typedef enum
92 {
97 
98 
99 /**
100  * @brief Enable linkUp/linkDown traps
101  **/
102 
103 typedef enum
104 {
108 
109 
110 /**
111  * @brief Address type
112  **/
113 
114 typedef enum
115 {
120 
121 
122 /**
123  * @brief Interfaces Group MIB base
124  **/
125 
126 typedef struct
127 {
130 } IfMibBase;
131 
132 
133 //Interfaces Group MIB related constants
134 extern IfMibBase ifMibBase;
135 extern const MibObject ifMibObjects[];
136 extern const MibModule ifMibModule;
137 
138 //C++ guard
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #endif
@ IF_MIB_IF_TYPE_L2_VLAN
Definition: if_mib_module.h:67
@ IF_MIB_IF_TYPE_PARA
Definition: if_mib_module.h:63
@ IF_MIB_IF_ADMIN_STATUS_DOWN
Definition: if_mib_module.h:82
IfMibIfAdminStatus
The desired state of the interface.
Definition: if_mib_module.h:80
IfMibIfType
Interface types.
Definition: if_mib_module.h:55
const MibModule ifMibModule
Interfaces Group MIB module.
@ IF_MIB_IF_LINK_UP_DOWN_TRAP_ENABLED
@ IF_MIB_RCV_ADDRESS_TYPE_VOLATILE
@ IF_MIB_IF_LINK_UP_DOWN_TRAP_DISABLED
IfMibRcvAddressType
Address type.
@ IF_MIB_IF_TYPE_ETHERNET_CSMACD
Definition: if_mib_module.h:57
@ IF_MIB_IF_TYPE_RS232
Definition: if_mib_module.h:62
uint32_t ifTableLastChange
@ IF_MIB_IF_TYPE_IEEE_802_11
Definition: if_mib_module.h:64
@ IF_MIB_IF_TYPE_PPP
Definition: if_mib_module.h:59
@ IF_MIB_IF_TYPE_TUNNEL
Definition: if_mib_module.h:66
@ IF_MIB_IF_TYPE_OTHER
Definition: if_mib_module.h:56
@ IF_MIB_IF_TYPE_USB
Definition: if_mib_module.h:68
@ IF_MIB_IF_ADMIN_STATUS_TESTING
Definition: if_mib_module.h:83
@ IF_MIB_IF_TYPE_PLC
Definition: if_mib_module.h:69
@ IF_MIB_RCV_ADDRESS_TYPE_NON_VOLATILE
@ IF_MIB_IF_OPER_STATUS_UP
Definition: if_mib_module.h:93
MIB module.
Definition: mib_common.h:292
@ IF_MIB_IF_TYPE_HDLC
Definition: if_mib_module.h:65
@ IF_MIB_IF_TYPE_SLIP
Definition: if_mib_module.h:61
uint32_t ifStackLastChange
@ IF_MIB_IF_OPER_STATUS_DOWN
Definition: if_mib_module.h:94
@ IF_MIB_IF_TYPE_BRIDGE
Definition: if_mib_module.h:70
Common definitions for MIB modules.
@ IF_MIB_RCV_ADDRESS_TYPE_OTHER
IfMibIfLinkUpDownEnable
Enable linkUp/linkDown traps.
const MibObject ifMibObjects[]
Interfaces Group MIB objects.
Definition: if_mib_module.c:66
#define MibObject
Definition: mib_common.h:46
@ IF_MIB_IF_TYPE_PROP_PTP_SERIAL
Definition: if_mib_module.h:58
@ IF_MIB_IF_ADMIN_STATUS_UP
Definition: if_mib_module.h:81
@ IF_MIB_IF_OPER_STATUS_TESTING
Definition: if_mib_module.h:95
@ IF_MIB_IF_TYPE_IEEE_802_15_4
Definition: if_mib_module.h:71
Interfaces Group MIB base.
@ IF_MIB_IF_TYPE_SOFT_LOOPBACK
Definition: if_mib_module.h:60
IfMibIfOperStatus
The operational state of the interface.
Definition: if_mib_module.h:92
IfMibBase ifMibBase
Interfaces Group MIB base.
Definition: if_mib_module.c:59