Hey, right you are! I tracked it down to remote_port = 0 passed into netsnmp_sockaddr_in(), but that didn't tell me why. Thanks!
Anybody know of any errata collection where you can find out what is obsolete or updated? Thanks, Phil Gillis -----Original Message----- From: root [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 12:02 PM To: Gillis, Philip W (Philip) Cc: [EMAIL PROTECTED] Subject: Re: unable to send PDU's to a UDP port other than 161? On Tue, Nov 09, 2004 at 10:28:17AM -0500, Gillis, Philip W (Philip) wrote: > Second, I can't seem to get the MA1 handler to send SNMP PDU's to the MA2 on > port 1161. I set up the session that handles this to use remote port 1161, > and then send PDU's. Ethereal shows that the PDU's are sent to port 161. > Sounds like I'm misunderstanding when the port setting takes effect. > > Here's what I do: > > >From init_myMibObjects(), after all the initialize_table_xxx()'s are called: > > /* open an SNMP session */ > snmp_sess_init ( &myStaticSession ); > myStaticSession.peername = some IP address"; > myStaticSession.remote_port = 1161; This is the problem. remote_port isn't used anymore. Do this instead: myStaticSession.peername = "address:1161"; ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
