Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

enabling ipv6 .

0 views
Skip to first unread message

kusuma.bm

unread,
Nov 16, 2009, 1:18:08 AM11/16/09
to
Hi all,
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?
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?


-kusuma

------------------------------------------------------------------------------
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
Net-snm...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Dave Shield

unread,
Nov 16, 2009, 3:29:53 AM11/16/09
to
2009/11/16 kusuma.bm <kusu...@globaledgesoft.com>:

> 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

0 new messages