I'am currently implementing an agent with special proxy-behaviour. It does
some kind of proxying the same request (from the outside) to multiple
internal agents (for failover reasons). To be able to use the same agent
code for all agents, I need to be sure not to forward a request to an agent
where it originally came from. Thats why I'd like to compare 'sender'
addresses.

So, assume I have a really really good reason:-) to do this, where exactly
is the information in the transport array?

thanks

2010/6/29 Wes Hardaker <[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

Reply via email to