Opened 9 years ago
Closed 8 years ago
#634 closed Bug / Defect (fixed)
--multihome on IPv6 sockets broken on FreeBSD/sparc64
Reported by: | Gert Döring | Owned by: | Gert Döring |
---|---|---|---|
Priority: | major | Milestone: | release 2.4 |
Component: | Generic / unclassified | Version: | OpenVPN git master branch (Community Ed) |
Severity: | Not set (select this one, unless your'e a OpenVPN developer) | Keywords: | |
Cc: |
Description
No idea whether it's "on FreeBSD in general" or just for FreeBSD/9.3 Sparc64, but that's what I have...
- client
- nobind
- multihome
leads to
Sat Nov 28 20:50:28 2015 TLS: Initial packet from [AF_INET6]2607:fc50:1001:5200::4:51194 (via 2001:608:0:1007:a00:20ff:fefe:4bd2%[undef]), sid=163e0511 9616bdc4
Sat Nov 28 20:50:28 2015 write UDPv6: Invalid argument (code=22)
Sat Nov 28 20:50:28 2015 write UDPv6: Invalid argument (code=22)
Sat Nov 28 20:50:30 2015 write UDPv6: Invalid argument (code=22)
Sat Nov 28 20:50:34 2015 write UDPv6: Invalid argument (code=22)
.. so the actual incoming target address is read correctly, but the scope ID is not set, and either that is confusing the send-out code path, or we just do something wrong with structure alignment / setup there (see also commit 661d914c8732a208580b1eab167255c85da162c, "Repair --multihome for FreeBSD for IPv4 sockets", trac #327)
commit 3fb246e38fc670c7dfff8ce4521c75c95c766c9e (master)
commit f7aba873ca593eb2ab8a4a358cd6c06ef46a09e1 (release/2.3)
Author: Gert Doering
Date: Sun Oct 9 12:09:29 2016 +0200
done! (took me long enough, given that I had almost-correct code in 2014...)