static struct dd_iohandle * open_file(struct resolve_context *resolve_ctx,
struct tevent_context *ev,
- const char * which, const char **ports,
+ const char * which,
struct smbcli_options *smb_options,
const char *socket_options,
struct smbcli_session_options *smb_session_options,
if (strcmp(which, "if") == 0) {
path = check_arg_pathname("if");
- handle = dd_open_path(resolve_ctx, ev, path, ports,
+ handle = dd_open_path(resolve_ctx, ev, path,
check_arg_numeric("ibs"), options,
socket_options,
smb_options, smb_session_options,
} else if (strcmp(which, "of") == 0) {
options |= DD_WRITE;
path = check_arg_pathname("of");
- handle = dd_open_path(resolve_ctx, ev, path, ports,
+ handle = dd_open_path(resolve_ctx, ev, path,
check_arg_numeric("obs"), options,
socket_options,
smb_options, smb_session_options,
(unsigned long long)iomax, options.max_xmit));
if (!(ifile = open_file(lpcfg_resolve_context(lp_ctx), ev, "if",
- lpcfg_smb_ports(lp_ctx), &options,
+ &options,
lpcfg_socket_options(lp_ctx),
&session_options,
lpcfg_gensec_settings(lp_ctx, lp_ctx)))) {
}
if (!(ofile = open_file(lpcfg_resolve_context(lp_ctx), ev, "of",
- lpcfg_smb_ports(lp_ctx), &options,
+ &options,
lpcfg_socket_options(lp_ctx),
&session_options,
lpcfg_gensec_settings(lp_ctx, lp_ctx)))) {
static struct smbcli_state * init_smb_session(struct resolve_context *resolve_ctx,
struct tevent_context *ev,
const char * host,
- const char **ports,
const char * share,
const char *socket_options,
struct smbcli_options *options,
static struct dd_iohandle * open_cifs_handle(struct resolve_context *resolve_ctx,
struct tevent_context *ev,
const char * host,
- const char **ports,
const char * share,
const char * path,
uint64_t io_size,
smbh->h.io_write = smb_write_func;
smbh->h.io_seek = smb_seek_func;
- if ((smbh->cli = init_smb_session(resolve_ctx, ev, host, ports, share,
+ if ((smbh->cli = init_smb_session(resolve_ctx, ev, host, share,
socket_options,
smb_options, smb_session_options,
gensec_settings)) == NULL) {
struct dd_iohandle * dd_open_path(struct resolve_context *resolve_ctx,
struct tevent_context *ev,
const char * path,
- const char **ports,
uint64_t io_size,
int options,
const char *socket_options,
/* Skip over leading directory separators. */
while (*remain == '/' || *remain == '\\') { remain++; }
- return(open_cifs_handle(resolve_ctx, ev, host, ports,
+ return(open_cifs_handle(resolve_ctx, ev, host,
share, remain,
io_size, options,
socket_options, smb_options,