Re: NET SNMP src interface question
"Roy M. Silvernail" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 01, 2008 at 04:49:18PM +0400, Nikolay Kanivets wrote: > I have Solaris server with several network interfaces. I have also > some daemon program which uses Net Snmp library to perform SNMP > requests to external targets. > > The problem is that I have not found if it is possible or not to tell > Net Snmp to use certain interface for sending outgoing packets. Is it > possible with Net Snmp ? Does anybody know? I believe you simply need to set the .localname member of your netsnmp_session structure to the desired interface address before calling snmp_open(). -- Roy M. Silvernail is [email protected], and you're not "A desperate disease requires a dangerous remedy." - Guy Fawkes http://www.rant-central.com ------------------------------------------------------------------------- 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