Purpose of netsnmp_pdu.data in mib table
Pushpa Thimmaiah <[email protected]> Wed, 16 Apr 2025 10:27:28 +0530
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAASqVJUDmQDAX8ciPJjGkJGwZFKhSOV4R7Tm5a_M+BszKaL8OA@mail.gmail.com> |
--===============0012249873285942830==
Content-Type: multipart/alternative; boundary="000000000000ec406d0632de1b4c"
--000000000000ec406d0632de1b4c
Content-Type: text/plain; charset="UTF-8"
Hi All,
From my observations, it appears that some of MIB table implementations
utilize the dataFreeHook within the netsnmp_pdu structure. I understand
that this hook is intended to release the memory allocated to
netsnmp_pdu.data. I would appreciate further clarification on the role of
netsnmp_pdu.data and the nature of the data it contains in the context of
MIB table implementations. Kindly guide.
Eg: dataFreeHook = requests->requestvb->dataFreeHook in
_mfd_ipAddressTable_get_values(netsnmp_mib_handler *handler,
netsnmp_handler_registration *reginfo,
netsnmp_agent_request_info *agtreq_info,
netsnmp_request_info *requests)
Thanks,
Pushpa Thimmaiah
--000000000000ec406d0632de1b4c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Hi All,</div><div>From my observations, it appears th=
at some=C2=A0 of MIB table
implementations utilize the dataFreeHook within the netsnmp_pdu=20
structure. I understand that this hook is intended to release the memory
allocated to netsnmp_pdu.data. I would appreciate further clarification
on the role of netsnmp_pdu.data and the nature of the data it contains=20
in the context of MIB table implementations.=C2=A0 Kindly guide.<br></div><=
div><br></div><div>Eg: dataFreeHook =3D requests->requestvb->dataFree=
Hook in <br><br>_mfd_ipAddressTable_get_values(netsnmp_mib_handler *handler=
,<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0netsnmp_handler_registration *regi=
nfo,<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0netsnmp_agent_request_info *ag=
treq_info,<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0netsnmp_request_info *r=
equests)</div><div><br></div><div><br></div><div>Thanks,</div><div>Pushpa T=
himmaiah<br></div></div>
--000000000000ec406d0632de1b4c--
--===============0012249873285942830==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============0012249873285942830==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
--===============0012249873285942830==--