Re: How to get the sender address out of a pdu
Wes Hardaker <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Sparta |
| Message-ID | <[email protected]> |
>>>>> On Tue, 29 Jun 2010 08:39:23 +0200, Boris Zweimueller <[email protected]> said: BZ> I noticed that in the pdu->transport_data array at positions 4-7 and 16-19 BZ> ip addresses are stored. It seams that the positions 4-7 store the senders BZ> ip, but is this really correct? Is there a better way to find out the BZ> senders address out of a pdu? Generally, you shouldn't do this at all. Although the transport object will have data associated in it, SNMP is designed to run over many different types of transports that include ones with and without IP addresses. If you end up eventually using your code in an agentx subagent, the subagent won't have access to the address at all. In short, you shouldn't do what you're trying to do without a really really good reason as to why it can *only* be done that way. -- Wes Hardaker Cobham Analytic Solutions ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ 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