Start a timer for enginetime handling.

This timer function should be implemented in the snmpv3_xxx.c file.
This commit is contained in:
Marco 2017-03-01 16:18:51 +01:00 committed by Dirk Ziegelmeier
parent f092d09121
commit f8f3cc039a
2 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,11 @@ snmp_netconn_thread(void *arg)
snmp_traps_handle = conn;
#if LWIP_SNMP_V3
/* Start the engine time timer */
tcpip_enginetime_timer(NULL);
#endif
do {
err = netconn_recv(conn, &buf);

View File

@ -65,6 +65,7 @@ err_t snmpv3_auth(struct snmp_pbuf_stream* stream, u16_t length, const u8_t* key
err_t snmpv3_crypt(struct snmp_pbuf_stream* stream, u16_t length, const u8_t* key,
const u8_t* priv_param, const u32_t engine_boots, const u32_t engine_time, u8_t algo, u8_t mode);
err_t snmpv3_build_priv_param(u8_t* priv_param);
void tcpip_enginetime_timer(void *arg);
#endif