smbc_opendir, libsmbclient and broadcasting...

Richard Sharpe sharpe at
Tue May 29 18:09:50 GMT 2001

At 11:17 AM 5/31/01 -0700, Ray Van Dolson wrote:
>I'm using libsmbclient on a Linux machines with three interfaces (3
>seperate subnets) set up.  When I use smbclient, Samba broadcasts on all 3
>when looking for machines.  However, when I use libsmbclient to do a
>smbc_opendir on a workgroup, eg: smb://STUDENTS, it returns only the
>machines that are on the first ethernet interfaces (eth0) and doesn't
>appear to broadcast on the others.  Is this because smbc_opendir, when
>indexing a workgroup only broadcasts to find a master browser until it
>finds one (which would naturally be on the first subnet) and then stops?
>Is there any way to force smbc_open to look for the master browser on a
>set subnet?

Hmmm, I will have to go back and look, and fire up a system with multiple
interfaces with servers on each interface and test ...

Richard Sharpe, sharpe at
Samba (Team member,, Ethereal (Team member,
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba

More information about the samba-technical mailing list