Hi All, Can I use attribute *data to send a string token in agentx get pdu
typedef struct variable_list { /** NULL for last variable */ struct variable_list *next_variable; /** Object identifier of variable */ oid *name; /** number of subid's in name */ size_t name_length; /** ASN type of variable */ u_char type; /** value of variable */ netsnmp_vardata val; /** the length of the value to be copied into buf */ size_t val_len; /** buffer to hold the OID */ oid name_loc[MAX_OID_LEN]; /** 90 percentile < 40. */ u_char buf[40]; /** (Opaque) hook for additional data */ void *data; <--------------------------------- Can I pass string token here /** callback to free above */ void (*dataFreeHook)(void *); int index; } netsnmp_variable_list; Thanks, Pushpa.T On Mon, Mar 17, 2025 at 1:43 PM Pushpa Thimmaiah <pushpa.thimma...@gmail.com> wrote: > Hi All, > > I am using the SNMPD master and subagent for private MIBs and would like > to know if private data can be transmitted to the subagent along with the > set/get request data. > > Specifically, during an SNMP query, I need to pass a unique string token > from SNMPD to the subagent along with the get request details. The subagent > will use this token for authentication to retrieve data from the backend. > This token is intended to remain confidential between SNMPD and the > subagent. > > > Thanks, > > Pushpa.T >
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders