Displaying 6 results from an estimated 6 matches for "cli_set_port".
2003 Oct 26
0
Patches for samba 3.0.0 client/client.c
...int cmd_help(void);
+static int connect_timeout = 20*1000;
+
/* 30 second timeout on most commands */
#define CLIENT_TIMEOUT (30*1000)
#define SHORT_TIMEOUT (5*1000)
@@ -2533,7 +2535,9 @@
if (have_ip) ip = dest_ip;
/* have to open a new connection */
- if (!(c=cli_initialise(NULL)) || (cli_set_port(c, port) != port) ||
+
+ if (!(c=cli_initialise(NULL)) || !(c->timeout = connect_timeout) ||
+ (cli_set_port(c, port) != port) ||
!cli_connect(c, server_n, &ip)) {
d_printf("Connection to %s failed\n", server_n);
return NULL;
@@ -2650,22 +2654,33 @...
2000 Jul 17
0
[PATCH] `smbclient -M' ignores `-p port'
...3 01:15:21 2000
> +++ samba-2.0.x/source/client/client.c Sun Jul 16 15:33:34 2000
> @@ -2164,7 +2164,8 @@
> ip = ipzero;
> if (have_ip) ip = dest_ip;
>
> - if (!(cli=cli_initialise(NULL)) || !cli_connect(cli, desthost, &ip)) {
> + if (!(cli=cli_initialise(NULL)) || !cli_set_port(cli, port) ||
> + !cli_connect(cli, desthost, &ip)) {
> DEBUG(0,("Connection to %s failed\n", desthost));
> return 1;
> }
2000 Jul 16
1
"smbclient -p <port>" appears to be broken in Samba 2.x
I posted this problem as a question to this list a while ago and got no
reply. I submitted it as a bug, but found that "samba-bugs@samba.org",
no longer accepts bug reports, even though the web page says to send them
to that address.
Wondering if the option had been intentionally discontinuted without
updating the man page, I made a quick check of the source and found that
the "-p
2002 Sep 07
2
UNICAST cross-subnet browsing, Port 445 vs. 139, and Win2k
I have been having a heck of a time getting cross subnet browsing to work
properly. After MANY hours hunting through source and debug logs, I have
FINALLY found the source of my browsing issues.
My Samba nmdb properly becomes the LMB for my segment on a WAN. I VPN to my
servers at the home office and Samba attempts to sync with the DMB. nmbd
properly locates the DMB via WINS over the
2000 Jul 31
0
[patch] smbmount fixes for samba-2.0.7, testers wanted!
...,7 @@
signal( SIGTERM, exit_parent );
if ((child_pid = fork()) < 0) {
- fprintf(stderr,"could not fork\n");
+ DEBUG(0,("could not fork\n"));
}
if (child_pid > 0) {
@@ -151,12 +145,12 @@
/* have to open a new connection */
if (!(c=cli_initialise(NULL)) || (cli_set_port(c, smb_port) == 0) ||
!cli_connect(c, server_n, &ip)) {
- fprintf(stderr,"Connection to %s failed\n", server_n);
+ DEBUG(0,("Connection to %s failed\n", server_n));
return NULL;
}
if (!cli_session_request(c, &calling, &called)) {
- fprintf(stderr, &...
2004 Oct 21
0
compile errors samba 3.0.7 vfs
...vscan-message.po(.text+0x248): undefined reference to `make_nmb_name'
global/vscan-message.po(.text+0x268): undefined reference to `make_nmb_name'
global/vscan-message.po(.text+0x275): undefined reference to
`cli_initialise'
global/vscan-message.po(.text+0x298): undefined reference to `cli_set_port'
global/vscan-message.po(.text+0x2b0): undefined reference to `cli_connect'
global/vscan-message.po(.text+0x2bd): undefined reference to
`DEBUGLEVEL_CLASS'
global/vscan-message.po(.text+0x2df): undefined reference to `dbghdr'
global/vscan-message.po(.text+0x300): undefined referenc...