You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did a small change to (*SockaddrALG).sockaddr (CL 527836) and wasn't quite sure it doesn't break anything. So I wrote a test case for AF_ALG functionality (CL 527837) to make sure it's still working, but found out that it's not possible to use unix.Accept with AF_ALG socket, as it sets the second and the third accept4 syscall arguments to non-nil values, and with AF_ALG those needs to be set to nil.
This is a proposal to add
RawAccept4
function to x/sys/unix for Linux. The implementation may look like this:Background
I did a small change to
(*SockaddrALG).sockaddr
(CL 527836) and wasn't quite sure it doesn't break anything. So I wrote a test case for AF_ALG functionality (CL 527837) to make sure it's still working, but found out that it's not possible to useunix.Accept
with AF_ALG socket, as it sets the second and the thirdaccept4
syscall arguments to non-nil values, and with AF_ALG those needs to be set to nil.Alternatives
unix.SYSCALL(unix.ACCEPT4, ...
.AcceptWithoutAddr
(https://go-review.googlesource.com/c/sys/+/527837/comment/4d5963aa_e794dbd3/). The implementation can look like this:The text was updated successfully, but these errors were encountered: