On sön, 2007-03-25 at 12:21 +0700, Duy Doan Khuong wrote:
> I use another port different with 161, before opening the session, I
> assign session.local_port and session.remote_portby my new port, but
> it didn’t successful.
> 
>  
> 
> Does net-snmp support user input non-default port? 

Yes.

> If yes, how can we use?

For 5.4 specifically:

Change the address string you are passing to your application, i.e.
session.peername to udp:your-peer-address:your-port

or

add the directive

defTarget snmp udp :your-port

to your application .conf file

session.local_port seems to be a flag that indicates if the socket you
are opening is a client(0) or a server(1).

session.remote_port appears to be unused from at least 5.3 and forward.

/MF



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to