Re: can NetSNMP.pm tell me the 'called IP'?
Fulko Hew <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel,gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 23, 2009 at 1:31 PM, Mike Ayers <[email protected]> wrote: > > From: Fulko Hew [mailto:[email protected]] > > Sent: Saturday, March 21, 2009 6:43 AM > > > if I have multiple IP addresses on my box, I'd like to (need > > to) discriminate between > > one request sent to 1.2.3.4 and a different request sent to 5.6.7.8 > > The simple, effective solution is to run a different agent on each > interface. > That could be hundreds, or thousands in my case! It seems to me that its not the most efficient way to do things. Upon further examination of the Net-SNMP I have tracked down the issue/data to something called 'transport', 'transport_data', and 'transport_data_length' This info is available during sess_process_packet(). The transport_data, contains the source and dest addresses, in a protocol independent buffer, and uses info provided in the 'transport' structure to 'know how to decode it'. ie. is it IPv4, IPv6, IPX, etc. The problem is that the transport structure isn't available by the time processing proceeds to the next routine 'handle_snmp_packet()' let alone subsequent routines. The transport data _is_ available via pointers to structures to structures to the buffer but the 'transport type' doesn't seem to be kept anywhere. (that I can find so far). And the sad part is that these lower routines _do_ get a pointer to a session structure that has placeholders for the local and remote host and port addresses, but they are _not_ filled in by the upper layers. :-( ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders