2009/11/16 kusuma.bm <[email protected]>:
> i am working on an application where 'snmpd'(taken from
> net-snmp-5.4.2.1) runs as a thread.I am trying to enable ipv6, but its
> not binding on port 161.So how can i do this,any macro that i have to
> enable in th code?
Call
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_PORTS, string);
where "string" holds the list of ports that you want to listen on.
These can be IPv4 ports, IPv6 ports or a mixture of the two.
(Or any other transport that the library supports)
> Secondly i want to enable either ipv4 or ipv6 at run time,depending on
> the resolved ip-address which i get from DNS. So anyways by which i can
> configure like this in the code?
See above.
Dave
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders