Hi all,

Hoping someone can help me out and this hasn't been covered before - I've had a pretty good search of the lists etc.

I am using the net snmp library in my code to enable some get/set type calls. The problem is I am hoping to be able to set up a firewall between the computer the code will be running on and an SNMP device. I therefore would like to be able to open just one port. The problem is that it seems the library chooses an arbitrary source port on the local computer (I can specify the remote port, or leave it as default of 162 no worries). Is there an easy way to select the source port from which the UDP GET / SET message originates?

I am thinking at the moment I will try and get the socket back from the netsnmp_session that is returned, and attempt to bind the socket to a port. Is this on the right track? Or have I missed the point? Any tips would be greatly appreciated.

Cheers,
Al



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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