Re: how to explicitly specify a snnp port number other than 161?

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Sat, 30 Aug 2008 22:05:59 +0800, "xiao ren" <[email protected]> said:

xr> May I use it as:

xr> netsnmp_session session;
xr> session.peername = strdup("192.168.1.2:1161");

Yep!

xr> I check snmp_api.h and found that there is a "remote_port" member in
xr> snmp_session struct, but it was outdated.

That's correct...  Currently everything operates on a single transport
string and the remote_port attribute was around before we started
supported a number of non-port based transports.
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.