Commit c3060ace authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: add fake wrsTimingStatus to wrsGeneralStatusGroup

Always return status ok in wrsTimingStatus.
Add defines for status values for wrsTimingStatus.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent b7f1fa27
......@@ -72,7 +72,8 @@ time_t wrsGeneralStatus_data_fill(void)
|************************** wrsTimingStatus **************************|
\*********************************************************************/
/* not implemented */
/* not implemented, always return OK */
wrsGeneralStatus_s.wrsTimingStatus = WRS_TIMING_STATUS_OK;
/*********************************************************************\
|************************ wrsNetworkingStatus ************************|
......
......@@ -11,6 +11,14 @@
* normal operation */
#define WRS_OS_STATUS_BUG 5 /* warning */
#define WRS_TIMING_STATUS_OK 1 /* ok */
#define WRS_TIMING_STATUS_ERROR 2 /* error */
#define WRS_TIMING_STATUS_WARNING 3 /* warning */
#define WRS_TIMING_STATUS_WARNING_NA 4 /* warning, at least one field is
* equal to 0 (NA),shouldn't happen in
* normal operation */
#define WRS_TIMING_STATUS_BUG 5 /* warning */
#define WRS_NETWORKING_STATUS_OK 1 /* ok */
#define WRS_NETWORKING_STATUS_ERROR 2 /* error */
#define WRS_NETWORKING_STATUS_WARNING 3 /* warning */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment