This is a discussion on <no subject> within the SNMP Users forums, part of the Networking and Network Related category; Hello again :-) i have another question about the functional range of the net-snmp library. I found some other questions ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello again :-)
i have another question about the functional range of the net-snmp library. I found some other questions in the user-list which concern nearly the same problem, but i could not find a good solution for that. So what is it all about: What i like to do is to write a proxy. This proxy communicates with one manager and different agents. From the view of the manager the proxy should simulate different agents. These agents are really existing. From the view of the agents the proxy should simulate one manager. This manager is also existing. The manager can send packets to a specific agent using a specific ip address of one of my virtual interfaces: ifconfig eth0:1 192.168.1.2 netmask ... // agent 1 ifconfig eth0:2 192.168.1.3 ... // agent 2 .... To forward the packets, i need to change the source and destination ip addresses and ports. Now 3 problems: 1. When an agent sends a packet to the manager, "i have to know which agent sends the packet". I saw that the source ip address of a pdu is in the transport_data field of the pdu. Can i always find the source address of a packet in this field? Or is there another possibility to find out, who sent the packet? (When i know the agent who sent the packet i can send out the packet on the right virtual interface.) 2. How can i specify the interface where i want to send out the packet? 3. When the manager sends a packet, i have to know which agent should get the packet. So i need the destination ip address. I will know this, if i find out, which specific interface received the packet. But how can i do this? Summary: How can i get packets from one or more interface(s)? How can i get the source address of a received pdu?. How can i get the destination ip address of a received pdu (when i am listening on different interfaces)? How can i specify the interface to send out the pdu? Thanks a lot for any hint Susanne __________________________________________________ ____________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |