Page MenuHomeFreeBSD

in6_mcast: Return EADDRINUSE when we've already joined the group
ClosedPublic

Authored by kp on May 4 2021, 7:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 15 2024, 5:24 PM
Unknown Object (File)
Dec 22 2023, 12:43 PM
Unknown Object (File)
Dec 20 2023, 2:33 AM
Unknown Object (File)
Dec 15 2023, 1:45 AM
Unknown Object (File)
Dec 12 2023, 6:11 AM
Unknown Object (File)
Dec 10 2023, 11:18 PM
Unknown Object (File)
Nov 18 2023, 10:31 AM
Unknown Object (File)
Nov 18 2023, 10:31 AM

Details

Summary

Distinguish between truly invalid requests and those that fail because
we've already joined the group. Both cases fail, but differentiating
them allows userspace to make more informed decisions about what the
error means.

For example. radvd tries to join the all-routers group on every SIGHUP.
This fails, because it's already joined it, but this failure should be
ignored (rather than treated as a sign that the interface's multicast is
broken).

This puts us in line with OpenBSD, NetBSD and Linux.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable