On Tue, 3 Jan 2012 18:50:01 +0000 Holger wrote: HK> Hi, HK> HK> I have a Linux PC with one physical interface (eth0) and two IP HK> aliases (eth0:0 and eth0:1) each with a different IP address. I am now HK> writing a C MIB module to handle SNMP requests for my MIB. I would HK> like to handle the requests differently depending on which of the HK> interfaces (or IP address) the SNMP request was received on. Is that HK> possible with NET-SNMP? If so, how do I get the IP address to which HK> the request was sent from within the MIB module? I am using version HK> Net-SNMP version 5.4.4.
see http://freesnmp.com/net-snmp/faqs/#packet-ip Setting up context mapping is discussed here, just use your individual IPs instead of 'default' in the com2sec lines.. http://www.net-snmp.org/wiki/index.php/Snmpd_proxy#Setting_up_SNMPv1_.28and_v2c.29_community.2Fcontext_mapping ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
