-
Notifications
You must be signed in to change notification settings - Fork 3k
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
inet:setopts/2
return 'ok' for add_membership
and multicast_if
even if IfAddress
is not avail
#7916
Comments
Looks like https://github.com/erlang/otp/blob/master/erts/emulator/drivers/common/inet_drv.c#L6764 I'm not sure I understand this comment correctly:
What is |
Similar behavior is also implemented for the option
Still looks like a bug.
|
add_membership
) return 'ok' even if Addr is not avail
add_membership
) return 'ok' even if Addr is not availinet:setopts/2
return 'ok' for add_membership
and multicast_if
even if IfAddress
is not avail
If you do the same with 'socket' it works as expected. |
Also do not know what BC stands for. Unless it was supposed to be PC (Politically Correct). |
Raimo knew: BC = Backwards Compatibility |
Also: 9> inet:setopts(S2, [{multicast_if, {1,2,3,4}}]). |
Thank you for answer. I see this is not a bug. |
Describe the bug
inet:setpopts/2
returnok
when{error, Error}
expected.To Reproduce
In erlang shell try set
multicat_if
option with unavail address:Expected behavior
Expected return
{error, eaddrnotavail}
Affected versions
26.1.2
Additional context
Debug output:
inet_set_opts
return-1
, butinet:setopts/2
returnok
.strace
:The text was updated successfully, but these errors were encountered: