From: SourceForge.net <no...@so...> - 2011-07-17 09:27:14
|
Bugs item #3364926, was opened at 2011-07-12 20:20 Message generated for change (Comment added) made by bvassche You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3364926&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: library Group: IPv6 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Stanislav Vorobiov (shephf) Assigned to: Nobody/Anonymous (nobody) Summary: IPv6 link-local addresses are not supported on windows Initial Comment: IPv6 link-local addresses are not supported on windows, i.e if I try to create a session with peername "udp6:[fe80::b52f:36dc:be07:9d6d%15]" NetSNMP creates a session and sends datagrams to fe80::b52f:36dc:be07:9d6d%0 instead of fe80::b52f:36dc:be07:9d6d%15. NetSNMP version: 5.6.1.1 (same thing in 5.7, didn't try it, just checked NetSNMP's source code) Windows version: windows 7 SP1 (don't remember exact version, I'm currently at home and this is a machine at my workplace) The problem is in snmplib/snmpIPv6BaseDomain.c:netsnmp_sockaddr_in6_2: The code like: #ifdef HAVE_IF_NAMETOINDEX unsigned int if_index = 0; #endif #ifdef HAVE_IF_NAMETOINDEX if_index = if_nametoindex(scope_id + 1); #endif #if defined(HAVE_IF_NAMETOINDEX) && defined(HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID) addr->sin6_scope_id = if_index; #endif will only compile on *nix, for windows there's a dirty workaround: #ifdef HAVE_IF_NAMETOINDEX if_index = if_nametoindex(scope_id + 1); #else if_index = atoi(scope_id + 1); #endif addr->sin6_scope_id = if_index; BTW, HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID isn't defined on windows either, inspite of the fact that sin6_scope_id is present on windows. ---------------------------------------------------------------------- >Comment By: (bvassche) Date: 2011-07-17 11:27 Message: Please send questions about release dates to the net-snmp-users mailing list. The Win32 IPv6 scope ID patch has been backported to the 5.6 and 5.7 branches. So any subsequent release of the 5.6 branch, 5.7 branch and the master branch (which will become version 6.0 ?) will include this patch. ---------------------------------------------------------------------- Comment By: Stanislav Vorobiov (shephf) Date: 2011-07-17 10:37 Message: Thank you, I've checked out the code, looks like the fix is the same as I've described above, so I'll stick with 5.6.1.1 for now. BTW, when the code in that master branch is going to be released ? ---------------------------------------------------------------------- Comment By: (bvassche) Date: 2011-07-15 18:12 Message: Support for sin6_scope_id is available on the master branch (see also http://www.net-snmp.org/wiki/index.php/Git for instructions on how to download that code). Does that help ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3364926&group_id=12694 |