#include "snmp_pdu.h"
Include dependency graph for snmp_api_util.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
struct | request_list |
struct | session_list |
struct | snmp_internal_session |
Macros | |
#define | PACKET_LENGTH 4500 |
#define | timercmp(tvp, uvp, cmp) |
#define | timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 |
#define | timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) |
Functions | |
int | snmp_get_socket_session (struct snmp_session *session_) |
int | snmp_select_info_session (struct snmp_session *session_, struct timeval *timeout) |
int | snmp_timeout_session (struct snmp_session *sp_) |
Macro Definition Documentation
◆ PACKET_LENGTH
#define PACKET_LENGTH 4500 |
Definition at line 42 of file snmp_api_util.h.
◆ timerclear
#define timerclear | ( | tvp | ) | (tvp)->tv_sec = (tvp)->tv_usec = 0 |
Definition at line 82 of file snmp_api_util.h.
◆ timercmp
#define timercmp | ( | tvp, | |
uvp, | |||
cmp | |||
) |
Value:
(((tvp)->tv_sec) cmp ((uvp)->tv_sec)) || \
((((tvp)->tv_sec) == ((uvp)->tv_sec)) && \
(((tvp)->tv_usec) cmp ((uvp)->tv_usec)))
Definition at line 76 of file snmp_api_util.h.
◆ timerisset
#define timerisset | ( | tvp | ) | ((tvp)->tv_sec || (tvp)->tv_usec) |
Definition at line 85 of file snmp_api_util.h.
Function Documentation
◆ snmp_get_socket_session()
int snmp_get_socket_session | ( | struct snmp_session * | session_ | ) |
◆ snmp_select_info_session()
int snmp_select_info_session | ( | struct snmp_session * | session_, |
struct timeval * | timeout | ||
) |
◆ snmp_timeout_session()
int snmp_timeout_session | ( | struct snmp_session * | sp_ | ) |