* EADDRNOTAVAIL in sendto(3p)
@ 2026-01-06 15:44 Angel Ruiz Fernandez
2026-01-06 16:13 ` Alejandro Colomar
0 siblings, 1 reply; 2+ messages in thread
From: Angel Ruiz Fernandez @ 2026-01-06 15:44 UTC (permalink / raw)
To: linux-man
Hello,
I think there is a missing error in the ERRORS section of sendto(3p)
When doing a sendto() to a Link-local scope IPv6 address on a socket
that is bound to in6addr_any which has not been set
setsockopt(IPV6_MULTICAST_IF) to a valid interface value, it fails with
EADDRNOTAVAIL because it does not know which interface to send the
multicast packet from.
I can make a patch later.
Regards,
Angel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: EADDRNOTAVAIL in sendto(3p)
2026-01-06 15:44 EADDRNOTAVAIL in sendto(3p) Angel Ruiz Fernandez
@ 2026-01-06 16:13 ` Alejandro Colomar
0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2026-01-06 16:13 UTC (permalink / raw)
To: Angel Ruiz Fernandez; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
On Tue, Jan 06, 2026 at 04:44:18PM +0100, Angel Ruiz Fernandez wrote:
> Hello,
Hi Angel,
> I think there is a missing error in the ERRORS section of sendto(3p)
>
> When doing a sendto() to a Link-local scope IPv6 address on a socket that is
> bound to in6addr_any which has not been set setsockopt(IPV6_MULTICAST_IF) to
> a valid interface value, it fails with EADDRNOTAVAIL because it does not
> know which interface to send the multicast packet from.
Possibly.
> I can make a patch later.
Thanks! It would be good to include (in the commit message) a small
C program demonstrating this. And also include links to kernel source
if possible, or CC anyone who could confirm. The more help it includes,
the easier it will be to review.
Have a lovely day!
Alex
>
> Regards,
> Angel
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-06 16:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06 15:44 EADDRNOTAVAIL in sendto(3p) Angel Ruiz Fernandez
2026-01-06 16:13 ` Alejandro Colomar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox