directing smbc_opendir(url) to an explicit interface

David Wuertele dave-gnus at bfnet.com
Thu Nov 13 03:45:21 GMT 2003


CH> There is no way that I can see to use a URL to indicate which
CH> interface should be used.  That is, there is nothing in the URL
CH> format that would apply to the problem you've raised, as I
CH> understand it.  If I'm missing something, please let me know.

I just read

  http://www.ietf.org/internet-drafts/draft-crhertel-smb-url-05.txt

(is that the latest version?)

it says that there is something called an "nbt_context":

smb_absURL    = scheme "://"
                      [ smb_net_path ] [ "?" [ nbt_context ] ]

nbt_context   = nbt_param *(";" nbt_param )

      nbt_param     = ( "BROADCAST=" IPv4address
                      | "CALLED=" netbiosname
                      | "CALLING=" netbiosname
                      | ( "NBNS=" | "WINS=" ) host
                      | "NODETYPE=" ("B" | "P" | "M" | "H")
                      | "SCOPEID=" scope_id
                      | ( "WORKGROUP=" | "NTDOMAIN=" ) nbt_name
                      )

If I'm reading this right, it says that I can write two URLs thusly:

  smb://WORKGROUP?BROADCAST=192.168.0.255
  smb://WORKGROUP?BROADCAST=192.168.1.255

The first is a request to list the servers on the WORKGROUP living on
my eth0 subnet, and the second is a request to list the servers on the
WORKGROUP living on my eth1 subnet.  Is this correct?

Dave




More information about the samba-technical mailing list