Re: How to decode addresses when receiving traps (version 5.4.1).
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 03/12/2007, Alain GUENRO <[email protected]> wrote: > With net-snmp-5.4.1, the stuct snmp_dpu fields were modified: > - "snmp_ipaddr address;" was replaced by "void * transport_data;" > - "snmp_ipaddr agent_addr;" was replaced by "unsigned char agent_addr[4];" > > Which code can be use to extract addresses (with net-snmp-5.4.1) from > these fields ? Try char *addr = transport->f_fmtadd( transport, transport->data, transport->data_length); Dave ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users