Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: TestGoogleSRV fails on freebsd with net.inet6.ip6.v6only=0 #1769

Closed
mikioh opened this issue May 2, 2011 · 3 comments
Closed

net: TestGoogleSRV fails on freebsd with net.inet6.ip6.v6only=0 #1769

mikioh opened this issue May 2, 2011 · 3 comments

Comments

@mikioh
Copy link
Contributor

mikioh commented May 2, 2011

What steps will reproduce the problem?
1. sysctl -w net.inet6.ip6.v6only=0
2. run gotest from go/src/pkg/net
3.

What is the expected output?
no FAIL

What do you see instead?
--- FAIL: net.TestGoogleSRV (0.00 seconds)
    failed: write udp 192.168.26.2:53: invalid argument
    no results
FAIL

Which compiler are you using (5g, 6g, 8g, gccgo)?


Which operating system are you using?
FreeBSD 8.2 RELEASE-p1

Which revision are you using?  (hg identify)
9266c53a8fc0 tip

% hg sum
parent: 8278:9266c53a8fc0 tip
 multipart: return an error on Reader EOF, not (nil, nil)
branch: default
commit: (clean)
update: (current)

Please provide any additional information below.
It seems like kernel (or socket library) returns invalid argument error when user tries
connecting to IPv4 address target with udp6, tcp6 and ip6.
@rsc
Copy link
Contributor

rsc commented May 2, 2011

Comment 1:

Looking forward to a patch.  :-)
Thanks for all your effort finding problems and cleaning them up.

Owner changed to @rsc.

Status changed to Accepted.

@mikioh
Copy link
Contributor Author

mikioh commented May 3, 2011

Comment 2:

summary of several kernels investigation, with attached code. 
protocol stack, user request, address format, matching result
pf4, af4, ip4, ok
pf4, af4, ip6, --
pf4, af4, ip6-ip4map, ok (scokopt v6only = 0)
pf4, af6, ip4, linux, darwin: ok, others: ng
pf4, af6, ip6, --
pf4, af6, ip6-ip4map, linux, darwin: ok, others: ng
freebsd (decoupled dual-stack arch):
        pf4: 44 udp4 127.0.0.1:5963
        pf4: 4m udp4 [::ffff:127.0.0.1]:5963
        pf4: 64 <failed>
        pf4: 6m <failed>
        pf6: 66 udp6 [::1]:5963
darwin (unified dual-stack arch):
        pf4: 44 udp4 127.0.0.1:5963
        pf4: 4m udp4 [::ffff:127.0.0.1]:5963
        pf4: 64 udp6 127.0.0.1:5963
        pf4: 6m udp6 [::ffff:127.0.0.1]:5963
        pf6: 66 udp6 [::1]:5963
linux (unified dual-stack arch):
        pf4: 44 udp4 127.0.0.1:5963
        pf4: 4m udp4 [::ffff:127.0.0.1]:5963
        pf4: 64 udp6 127.0.0.1:5963
        pf4: 6m udp6 [::ffff:127.0.0.1]:5963
        pf6: 66 udp6 [::1]:5963

Attachments:

  1. pfafaddrs.go (691 bytes)

@rsc
Copy link
Contributor

rsc commented May 16, 2011

Comment 4:

This issue was closed by revision 2ddcad9.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants