|
enum | MBG_MONITORING_TYPES { MBG_MONITORING_TYPE_SNMP,
MBG_MONITORING_TYPE_EMAIL,
MBG_MONITORING_TYPE_SYSLOG,
N_MBG_MONITORING_TYPES
} |
|
enum | MBG_MONITORING_TYPE_MSKS { MBG_MONITORING_TYPE_MSK_SNMP = (1UL << MBG_MONITORING_TYPE_SNMP),
MBG_MONITORING_TYPE_MSK_EMAIL = (1UL << MBG_MONITORING_TYPE_EMAIL),
MBG_MONITORING_TYPE_MSK_SYSLOG = (1UL << MBG_MONITORING_TYPE_SYSLOG)
} |
|
enum | MBG_SNMP_VERSIONS { MBG_SNMP_VERSION_V1,
MBG_SNMP_VERSION_V2c,
MBG_SNMP_VERSION_V3,
N_MBG_SNMP_VERSIONS
} |
|
enum | MBG_SNMP_VERSION_MSKS { MBG_SNMP_VERSION_MSK_V1 = (1UL << MBG_SNMP_VERSION_V1),
MBG_SNMP_VERSION_MSK_V2c = (1UL << MBG_SNMP_VERSION_V2c),
MBG_SNMP_VERSION_MSK_V3 = (1UL << MBG_SNMP_VERSION_V3)
} |
|
enum | MBG_SNMP_FLAGS { MBG_SNMP_SYSTEM_USER,
MBG_SNMP_ADD_CONF,
N_MBG_SNMP_FLAGS
} |
|
enum | MBG_SNMP_FLAG_MSKS { MBG_SNMP_SYSTEM_USER_MSK = ( 1UL << MBG_SNMP_SYSTEM_USER ),
MBG_SNMP_ADD_CONF_MSK = ( 1UL << MBG_SNMP_ADD_CONF )
} |
|
enum | MBG_SNMP_ACCESS_TYPES { MBG_SNMP_ACCESS_TYPE_RO,
MBG_SNMP_ACCESS_TYPE_RW,
N_MBG_SNMP_ACCESS_TYPES
} |
|
enum | MBG_SNMP_V3_SEC_LEVELS { MBG_SNMP_V3_SEC_LEVEL_NO_AUTH_NO_PRIV,
MBG_SNMP_V3_SEC_LEVEL_AUTH_NO_PRIV,
MBG_SNMP_V3_SEC_LEVEL_AUTH_PRIV,
N_MBG_SNMP_V3_SEC_LEVELS
} |
|
enum | MBG_SNMP_V3_AUTH_PROTOCOLS { MBG_SNMP_V3_AUTH_PROTOCOL_NONE,
MBG_SNMP_V3_AUTH_PROTOCOL_MD5,
MBG_SNMP_V3_AUTH_PROTOCOL_SHA,
N_MBG_SNMP_V3_AUTH_PROTOCOLS
} |
|
enum | MBG_SNMP_V3_PRIV_PROTOCOLS { MBG_SNMP_V3_PRIV_PROTOCOL_NONE,
MBG_SNMP_V3_PRIV_PROTOCOL_DES,
MBG_SNMP_V3_PRIV_PROTOCOL_AES,
N_MBG_SNMP_V3_PRIV_PROTOCOLS
} |
|
enum | MBG_EVENT_TYPES { MBG_EVENT_TYPE_NTP_STATE,
MBG_EVENT_TYPE_HEARTBEAT,
MBG_EVENT_TYPE_RECEIVER_STATE,
N_MBG_EVENT_TYPES
} |
|
enum | MBG_EVENT_SEVERITIES {
MBG_EVENT_SEVERITY_OK,
MBG_EVENT_SEVERITY_INFO,
MBG_EVENT_SEVERITY_WARNING,
MBG_EVENT_SEVERITY_ERROR,
MBG_EVENT_SEVERITY_CRITICAL,
N_MBG_EVENT_SEVERITIES
} |
|
enum | MBG_EVENT_SUPP_FLAGS { MBG_EVENT_SUPP_FLAG_INTERVAL,
N_MBG_EVENT_SUPP_FLAGS
} |
|
enum | MBG_EVENT_SUPP_FLAG_MSKS { MBG_EVENT_SUPP_FLAG_MSK_INTERVAL = ( 1UL << MBG_EVENT_SUPP_FLAG_INTERVAL )
} |
|
enum | MBG_EVENT_VALUE_TYPES {
MBG_EVENT_VALUE_TYPE_NONE,
MBG_EVENT_VALUE_TYPE_INTEGER32,
MBG_EVENT_VALUE_TYPE_UNSIGNED32,
MBG_EVENT_VALUE_TYPE_STRING,
MBG_EVENT_VALUE_TYPE_IRANGE,
MBG_EVENT_VALUE_TYPE_URANGE,
MBG_EVENT_VALUE_TYPE_SELECTION,
N_MBG_EVENT_VALUE_TYPES
} |
|
enum | MBG_SYSLOG_FLAGS { MBG_SYSLOG_FLAG_NULL_TIMESTAMP,
N_MBG_SYSLOG_FLAGS
} |
|
enum | MBG_SYSLOG_FLAG_MSKS { MBG_SYSLOG_FLAG_MSK_NULL_TIMESTAMP = (1UL << MBG_SYSLOG_FLAG_NULL_TIMESTAMP)
} |
|
enum | MBG_SYSLOG_PROTOCOLS { MBG_SYSLOG_PROTOCOL_UDP,
MBG_SYSLOG_PROTOCOL_TCP,
N_MBG_SYSLOG_PROTOCOLS
} |
|
enum | MBG_SYSLOG_PROTOCOL_MSKS { MBG_SYSLOG_PROTOCOL_MSK_UDP = (1UL << MBG_SYSLOG_PROTOCOL_UDP),
MBG_SYSLOG_PROTOCOL_MSK_TCP = (1UL << MBG_SYSLOG_PROTOCOL_TCP)
} |
|
- Note
- This structure and its definitions are only supported by a device if MBG_XFEATURE_MONITORING is set in the extended device features.
TODO: Add proper Doxygen documentation
◆ _mbg_swab_event_info
#define _mbg_swab_event_info |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_event_settings( &(_p)->settings ); \
_mbg_swab16( &(_p)->type ); \
_mbg_swab16( &(_p)->value_dict_entries ); \
_mbg_swab16( &(_p)->supp_flags ); \
_mbg_swab16( &(_p)->supp_triggers ); \
_mbg_swab16( &(_p)->flags ); \
} while ( 0 )
Definition at line 21892 of file gpsdefs.h.
◆ _mbg_swab_event_info_idx
#define _mbg_swab_event_info_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_event_settings
#define _mbg_swab_event_settings |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab16( &(_p)->triggers ); \
_mbg_swab16( &(_p)->interval ); \
} while ( 0 )
Definition at line 21798 of file gpsdefs.h.
◆ _mbg_swab_event_settings_idx
#define _mbg_swab_event_settings_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_event_status
#define _mbg_swab_event_status |
( |
|
_p, |
|
|
|
_type |
|
) |
| |
Value:do \
{ \
_mbg_swab32( &(_p)->last_changed ); \
switch ( (_type) ) \
{ \
_mbg_swab32( &(_p)->u.i32 ); \
break; \
\
_mbg_swab32( &(_p)->u.u32 ); \
break; \
\
default: \
break; \
} \
} while ( 0 )
Definition at line 22078 of file gpsdefs.h.
◆ _mbg_swab_event_status_idx
#define _mbg_swab_event_status_idx |
( |
|
_p, |
|
|
|
_type |
|
) |
| |
◆ _mbg_swab_event_value
#define _mbg_swab_event_value |
( |
|
_p, |
|
|
|
_type |
|
) |
| |
Value:do \
{ \
switch ( (_type) ) \
{ \
_mbg_swab_event_value_selection( &(_p)->selection ); \
break; \
\
_mbg_swab_event_value_irange( &(_p)->irange ); \
break; \
\
_mbg_swab_event_value_urange( &(_p)->urange ); \
break; \
\
default: \
break; \
} \
} while ( 0 )
Definition at line 22019 of file gpsdefs.h.
◆ _mbg_swab_event_value_idx
#define _mbg_swab_event_value_idx |
( |
|
_p, |
|
|
|
_type |
|
) |
| |
◆ _mbg_swab_event_value_irange
#define _mbg_swab_event_value_irange |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab32( &(_p)->min ); \
_mbg_swab32( &(_p)->max ); \
} while ( 0 )
Definition at line 21983 of file gpsdefs.h.
◆ _mbg_swab_event_value_selection
#define _mbg_swab_event_value_selection |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab32( &(_p)->value ); \
} while ( 0 )
Definition at line 21968 of file gpsdefs.h.
◆ _mbg_swab_event_value_urange
#define _mbg_swab_event_value_urange |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab32( &(_p)->min ); \
_mbg_swab32( &(_p)->max ); \
} while ( 0 )
Definition at line 21999 of file gpsdefs.h.
◆ _mbg_swab_monitoring_limits
#define _mbg_swab_monitoring_limits |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_glb_info
#define _mbg_swab_snmp_glb_info |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_glb_settings
#define _mbg_swab_snmp_glb_settings |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v12_info
#define _mbg_swab_snmp_v12_info |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_snmp_v12_settings( &(_p)->settings ); \
} while ( 0 )
Definition at line 21457 of file gpsdefs.h.
◆ _mbg_swab_snmp_v12_info_idx
#define _mbg_swab_snmp_v12_info_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v12_settings
#define _mbg_swab_snmp_v12_settings |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v12_settings_idx
#define _mbg_swab_snmp_v12_settings_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v12_trap_info
#define _mbg_swab_snmp_v12_trap_info |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_snmp_v12_trap_settings( &(_p)->settings ); \
} while ( 0 )
Definition at line 21528 of file gpsdefs.h.
◆ _mbg_swab_snmp_v12_trap_info_idx
#define _mbg_swab_snmp_v12_trap_info_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v12_trap_settings
#define _mbg_swab_snmp_v12_trap_settings |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_snmp_v12_settings( &(_p)->v12_settings ); \
_mbg_swab16( &(_p)->dest_port ); \
} while ( 0 )
Definition at line 21496 of file gpsdefs.h.
◆ _mbg_swab_snmp_v12_trap_settings_idx
#define _mbg_swab_snmp_v12_trap_settings_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v3_info
#define _mbg_swab_snmp_v3_info |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_snmp_v3_settings( &(_p)->settings ); \
} while ( 0 )
Definition at line 21660 of file gpsdefs.h.
◆ _mbg_swab_snmp_v3_info_idx
#define _mbg_swab_snmp_v3_info_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v3_settings
#define _mbg_swab_snmp_v3_settings |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab32( &(_p)->boots ); \
_mbg_swab32( &(_p)->time ); \
} while ( 0 )
Definition at line 21628 of file gpsdefs.h.
◆ _mbg_swab_snmp_v3_settings_idx
#define _mbg_swab_snmp_v3_settings_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v3_trap_info
#define _mbg_swab_snmp_v3_trap_info |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_snmp_v3_trap_settings( &(_p)->settings ); \
} while ( 0 )
Definition at line 21729 of file gpsdefs.h.
◆ _mbg_swab_snmp_v3_trap_info_idx
#define _mbg_swab_snmp_v3_trap_info_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_snmp_v3_trap_settings
#define _mbg_swab_snmp_v3_trap_settings |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_snmp_v3_settings( &(_p)->v3_settings ); \
_mbg_swab16( &(_p)->dest_port ); \
} while ( 0 )
Definition at line 21697 of file gpsdefs.h.
◆ _mbg_swab_snmp_v3_trap_settings_idx
#define _mbg_swab_snmp_v3_trap_settings_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_syslog_glb_info
#define _mbg_swab_syslog_glb_info |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_syslog_glb_settings( &(_p)->settings ); \
_mbg_swab32( &(_p)->supp_flags ); \
_mbg_swab32( &(_p)->supp_protocols ); \
} while ( 0 )
Definition at line 22176 of file gpsdefs.h.
Referenced by mbgextio_get_syslog_glb_info().
◆ _mbg_swab_syslog_glb_settings
#define _mbg_swab_syslog_glb_settings |
( |
|
_p | ) |
|
◆ _mbg_swab_syslog_info
#define _mbg_swab_syslog_info |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab_syslog_settings( &(_p)->settings ); \
} while ( 0 )
Definition at line 22226 of file gpsdefs.h.
◆ _mbg_swab_syslog_info_idx
#define _mbg_swab_syslog_info_idx |
( |
|
_p | ) |
|
◆ _mbg_swab_syslog_settings
#define _mbg_swab_syslog_settings |
( |
|
_p | ) |
|
Value:do \
{ \
_mbg_swab16( &(_p)->port ); \
_mbg_swab32( &(_p)->flags ); \
} while ( 0 )
Definition at line 22196 of file gpsdefs.h.
◆ _mbg_swab_syslog_settings_idx
#define _mbg_swab_syslog_settings_idx |
( |
|
_p | ) |
|
◆ MBG_EVENT_SEVERITY_STRS
#define MBG_EVENT_SEVERITY_STRS |
Value:{ \
"OK", \
"Info", \
"Warning", \
"Error", \
"Critical" \
}
Definition at line 21779 of file gpsdefs.h.
◆ MBG_EVENT_TYPE_STRS
#define MBG_EVENT_TYPE_STRS |
Value:{ \
"NTP state", \
"Heartbeat", \
"Receiver state" \
}
Definition at line 21761 of file gpsdefs.h.
◆ MBG_EVENT_VALUE_TYPE_STRS
#define MBG_EVENT_VALUE_TYPE_STRS |
Value:{ \
"None", \
"Signed32", \
"Unsigned32", \
"String", \
"Signed range", \
"Unsigned range", \
"Selection" \
}
Definition at line 21944 of file gpsdefs.h.
◆ MBG_MONITORING_STR_SIZE
#define MBG_MONITORING_STR_SIZE 32 |
◆ MBG_MONITORING_TYPE_STRS
#define MBG_MONITORING_TYPE_STRS |
Value:{ \
"SNMP", \
"Email", \
"Syslog" \
}
Definition at line 21265 of file gpsdefs.h.
◆ MBG_SNMP_ACCESS_TYPE_STRS
#define MBG_SNMP_ACCESS_TYPE_STRS |
Value:{ \
"Read-only", \
"Read-write" \
}
Definition at line 21409 of file gpsdefs.h.
◆ MBG_SNMP_FLAG_STRS
#define MBG_SNMP_FLAG_STRS |
Value:{ \
"System user", \
"Additional config" \
}
Definition at line 21331 of file gpsdefs.h.
◆ MBG_SNMP_V3_AUTH_PROTOCOL_STRS
#define MBG_SNMP_V3_AUTH_PROTOCOL_STRS |
Value:{ \
"None", \
"MD5", \
"SHA" \
}
Definition at line 21576 of file gpsdefs.h.
◆ MBG_SNMP_V3_PRIV_PROTOCOL_STRS
#define MBG_SNMP_V3_PRIV_PROTOCOL_STRS |
Value:{ \
"None", \
"DES", \
"AES" \
}
Definition at line 21593 of file gpsdefs.h.
◆ MBG_SNMP_V3_SEC_LEVEL_STRS
#define MBG_SNMP_V3_SEC_LEVEL_STRS |
Value:{ \
"No auth no priv", \
"Auth no priv", \
"Auth priv" \
}
Definition at line 21560 of file gpsdefs.h.
◆ MBG_SNMP_VERSION_STRS
#define MBG_SNMP_VERSION_STRS |
Value:{ \
"Version 1", \
"Version 2c", \
"Version 3" \
}
Definition at line 21308 of file gpsdefs.h.
◆ MBG_SYSLOG_PROTOCOL_STRS
#define MBG_SYSLOG_PROTOCOL_STRS |
◆ SNMP_DEF_ADD_CONF_FILE
◆ SNMP_DEF_ADD_CONF_FILENAME
#define SNMP_DEF_ADD_CONF_FILENAME "snmp.conf.add" |
◆ SNMP_DEF_ADD_CONF_PATH
#define SNMP_DEF_ADD_CONF_PATH "/etc/mbg" |
◆ MBG_EVENT_STR
typedef char MBG_EVENT_STR[64] |
◆ MBG_EVENT_SEVERITIES
Enumerator |
---|
MBG_EVENT_SEVERITY_OK | |
MBG_EVENT_SEVERITY_INFO | |
MBG_EVENT_SEVERITY_WARNING | |
MBG_EVENT_SEVERITY_ERROR | |
MBG_EVENT_SEVERITY_CRITICAL | |
N_MBG_EVENT_SEVERITIES | |
Definition at line 21769 of file gpsdefs.h.
◆ MBG_EVENT_SUPP_FLAG_MSKS
Enumerator |
---|
MBG_EVENT_SUPP_FLAG_MSK_INTERVAL | |
Definition at line 21835 of file gpsdefs.h.
◆ MBG_EVENT_SUPP_FLAGS
Enumerator |
---|
MBG_EVENT_SUPP_FLAG_INTERVAL | Event can be sent cyclically.
|
N_MBG_EVENT_SUPP_FLAGS | |
Definition at line 21828 of file gpsdefs.h.
◆ MBG_EVENT_TYPES
Enumerator |
---|
MBG_EVENT_TYPE_NTP_STATE | |
MBG_EVENT_TYPE_HEARTBEAT | |
MBG_EVENT_TYPE_RECEIVER_STATE | |
N_MBG_EVENT_TYPES | |
Definition at line 21753 of file gpsdefs.h.
◆ MBG_EVENT_VALUE_TYPES
Enumerator |
---|
MBG_EVENT_VALUE_TYPE_NONE | Sounds stupid but think of heartbeat.
|
MBG_EVENT_VALUE_TYPE_INTEGER32 | |
MBG_EVENT_VALUE_TYPE_UNSIGNED32 | |
MBG_EVENT_VALUE_TYPE_STRING | |
MBG_EVENT_VALUE_TYPE_IRANGE | |
MBG_EVENT_VALUE_TYPE_URANGE | |
MBG_EVENT_VALUE_TYPE_SELECTION | |
N_MBG_EVENT_VALUE_TYPES | |
Definition at line 21930 of file gpsdefs.h.
◆ MBG_MONITORING_TYPE_MSKS
Enumerator |
---|
MBG_MONITORING_TYPE_MSK_SNMP | |
MBG_MONITORING_TYPE_MSK_EMAIL | |
MBG_MONITORING_TYPE_MSK_SYSLOG | |
Definition at line 21272 of file gpsdefs.h.
◆ MBG_MONITORING_TYPES
Enumerator |
---|
MBG_MONITORING_TYPE_SNMP | |
MBG_MONITORING_TYPE_EMAIL | |
MBG_MONITORING_TYPE_SYSLOG | |
N_MBG_MONITORING_TYPES | |
Definition at line 21257 of file gpsdefs.h.
◆ MBG_SNMP_ACCESS_TYPES
Enumerator |
---|
MBG_SNMP_ACCESS_TYPE_RO | |
MBG_SNMP_ACCESS_TYPE_RW | |
N_MBG_SNMP_ACCESS_TYPES | |
Definition at line 21401 of file gpsdefs.h.
◆ MBG_SNMP_FLAG_MSKS
◆ MBG_SNMP_FLAGS
Enumerator |
---|
MBG_SNMP_SYSTEM_USER | |
MBG_SNMP_ADD_CONF | Supports additional SNMP configuration (i.e. via script)
|
N_MBG_SNMP_FLAGS | |
Definition at line 21323 of file gpsdefs.h.
◆ MBG_SNMP_V3_AUTH_PROTOCOLS
Enumerator |
---|
MBG_SNMP_V3_AUTH_PROTOCOL_NONE | |
MBG_SNMP_V3_AUTH_PROTOCOL_MD5 | |
MBG_SNMP_V3_AUTH_PROTOCOL_SHA | |
N_MBG_SNMP_V3_AUTH_PROTOCOLS | |
Definition at line 21568 of file gpsdefs.h.
◆ MBG_SNMP_V3_PRIV_PROTOCOLS
Enumerator |
---|
MBG_SNMP_V3_PRIV_PROTOCOL_NONE | |
MBG_SNMP_V3_PRIV_PROTOCOL_DES | |
MBG_SNMP_V3_PRIV_PROTOCOL_AES | |
N_MBG_SNMP_V3_PRIV_PROTOCOLS | |
Definition at line 21584 of file gpsdefs.h.
◆ MBG_SNMP_V3_SEC_LEVELS
Enumerator |
---|
MBG_SNMP_V3_SEC_LEVEL_NO_AUTH_NO_PRIV | |
MBG_SNMP_V3_SEC_LEVEL_AUTH_NO_PRIV | |
MBG_SNMP_V3_SEC_LEVEL_AUTH_PRIV | |
N_MBG_SNMP_V3_SEC_LEVELS | |
Definition at line 21552 of file gpsdefs.h.
◆ MBG_SNMP_VERSION_MSKS
Enumerator |
---|
MBG_SNMP_VERSION_MSK_V1 | |
MBG_SNMP_VERSION_MSK_V2c | |
MBG_SNMP_VERSION_MSK_V3 | |
Definition at line 21315 of file gpsdefs.h.
◆ MBG_SNMP_VERSIONS
Enumerator |
---|
MBG_SNMP_VERSION_V1 | |
MBG_SNMP_VERSION_V2c | |
MBG_SNMP_VERSION_V3 | |
N_MBG_SNMP_VERSIONS | |
Definition at line 21300 of file gpsdefs.h.
◆ MBG_SYSLOG_FLAG_MSKS
◆ MBG_SYSLOG_FLAGS
Enumerator |
---|
MBG_SYSLOG_FLAG_NULL_TIMESTAMP | Receiver should use his own timestamp.
|
N_MBG_SYSLOG_FLAGS | |
Definition at line 22115 of file gpsdefs.h.
◆ MBG_SYSLOG_PROTOCOL_MSKS
◆ MBG_SYSLOG_PROTOCOLS
Enumerator |
---|
MBG_SYSLOG_PROTOCOL_UDP | |
MBG_SYSLOG_PROTOCOL_TCP | |
N_MBG_SYSLOG_PROTOCOLS | |
Definition at line 22128 of file gpsdefs.h.