Bug 5681 - can fail with "bind interfaces only" and >128 IP addresses
can fail with "bind interfaces only" and >128 IP addresses
Product: Samba 3.2
Classification: Unclassified
Component: File services
Other Linux
: P3 minor
: ---
Assigned To: Jeremy Allison
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2008-08-11 13:37 UTC by Debian samba package maintainers (PUBLIC MAILING LIST)
Modified: 2009-05-18 13:09 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Debian samba package maintainers (PUBLIC MAILING LIST) 2008-08-11 13:37:14 UTC

this is a forwarded bug from Debian (see http://bugs.debian.org/428618)

smbd can fail to start if the "bind interfaces only" option has been
enabled, and "interfaces" is set to an interface that isn't enumerated
by samba due to a 128 MAX_INTERFACES limit.

    # rm -f /var/log/samba/log.smbd
    # smbd -d 10
    # grep interfaces /etc/samba/smb.conf 
       interfaces =
       bind interfaces only = true
    # grep "added interface" /var/log/samba/log.smbd | wc -l
    # grep /var/log/samba/log.smbd 
      doing parameter interfaces =
      Can't determine ip for broadcast address

In the full log, the 128 "added interface" messages are for IP addresses
on interface br0.  As br0 has more than 128 IP addresses, the IP
addresses on eth0 (the network) aren't enumerated.

source/include/interfaces.h:#define MAX_INTERFACES 128

This could be raised but there maybe a better solution for users with the need of many interfaces?

Thank you

Comment 1 Volker Lendecke 2009-05-18 10:15:21 UTC
Checked in a fix to master with bbbf9f13add129. Jeremy, please review, merge for 3.4 and then close this bug. I don't think we should put this into 3.3.


Comment 2 Jeremy Allison 2009-05-18 13:09:12 UTC
Obvious goodness - thanks ! Merged to 3.4.