Commit graph

3 commits

Author SHA1 Message Date
Bart Van Assche
2950555c5a
Prepare for Net-SNMP release 5.10 (#9028)
* Allocate Net-SNMP securityAuthProto dynamically

The Net-SNMP securityAuthProto session member is freed when a session is
closed. Hence, any pointers stored in this session member must be allocated
dynamically.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>

* Prepare for Net-SNMP 5.10

Net-SNMP commit 2f2240513138 ("libsnmp: Enable type checking for session
pointers") changed the return type of snmp_sess_open() and several other
functions from void * into struct session_list *. This commit is not in
release 5.9 but will be included in the upcoming Net-SNMP release 5.10.
Prepare for the Net-SNMP 5.10 release by making the SNMPSession::session_ptr
type identical to the Net-SNMP snmp_sess_open() return type.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>

---------

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
2025-03-18 11:49:50 +01:00
Alfredo Cardigliano
9352d0cdcd Update copyright 2025-01-02 09:09:56 +01:00
Alfredo Cardigliano
22ab01d6ff Split code for SNMP walk and trap collection 2024-07-22 10:31:40 +00:00