On Mon, 2008-08-25 at 13:49 +0200, Marco Mussini wrote: > Hi, > in a situation where AgentX support is enabled, the subagent receives > from master agent the incoming request for processing. > Sometimes the subagent needs to know the IP address of the manager > that issued a request; this information is easily found in the source > PDU header that can be captured between manager and master agent. > Since the master agent merely acts as a dispatcher, the same > information should be also made available to the sub-agent.
No, since it is dispatched through a protocol that assumes that all security processing is to take place in the master agent and thus have no features for that. > According to documentation, it should be reachable through the NetSNMP > API by following reqinfo->asp->session->peername. However, it appears > this is not the case. Perhaps the master agent does not propagate this > info to the subagent? No, it doesn't. Furthermore, that field might be something other than an IP address, Net-SNMP supports using among other things IPX and IPv6 addresses in that field. > Anyone ever noticed this (mis)behaviour? This is a feature, not a bug. An information module really that behaves differently for different callers (save from what the view handling allows) is quite unexpected. Regarding that structure, my personal opinion is that it is a mess that should be splitted up (it has everything and a kitchen sink) but I suppose that is quite some time into the future before that happens (I have to do the job first and then get the change approved) so the fields in it are not always set and some of them are deprecated. > Thanks in advance for any suggestion/comment on this topic, > Marco > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ Net-snmp-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders