Bug 15612 - Unable bind to IPv6 Link-local Address
Summary: Unable bind to IPv6 Link-local Address
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All All
: P5 critical (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-22 15:13 UTC by rmraz4
Modified: 2024-03-22 15:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rmraz4 2024-03-22 15:13:14 UTC
When the parameter 'bind interfaces only = yes' is used on the selected interface, IPv6 Link-local address is excluded and no listen.

Exclude is hard-coded in file:
lib/socket/interfaces.c:290

if (IN6_IS_ADDR_LINKLOCAL(in6) || IN6_IS_ADDR_V4COMPAT(in6)) {
      continue;
}

Removing 'IN6_IS_ADDR_LINKLOCAL(in6)' will solve the problem, however, I would also consider removing 'IN6_IS_ADDR_V4COMPAT(in6)' to avoid further compatibility problems in the future.