summaryrefslogtreecommitdiff
path: root/source3/libsmb/smbsock_connect.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb: make use of samba_tevent_context_init()Stefan Metzmacher2013-02-191-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:libsmb: use nb_connect_send() directly instead of doing a 0 timer for ↵Stefan Metzmacher2012-05-301-4/+9
| | | | | | | | | port 139 metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 30 20:51:51 CEST 2012 on sn-devel-104
* Rename obscure defined constants.Christopher R. Hertel (crh)2012-02-161-7/+7
| | | | | | | | | | | | | | | Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT. Also replaced several hard-coded references to the well-known port numbers (139 and 445, respectively) as appropriate. Small changes to clarify some comments regarding the two transport types. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104
* libcli/smb: move source3/libsmb/read_smb.* to the toplevelStefan Metzmacher2011-10-241-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 24 10:18:06 CEST 2011 on sn-devel-104
* s3:libsmb: make cli_session_request_send/recv() staticStefan Metzmacher2011-08-281-6/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Aug 28 20:29:01 CEST 2011 on sn-devel-104
* s3:libsmb: move cli_session_request*() to smbsock_connect.cStefan Metzmacher2011-08-281-0/+129
| | | | metze
* s/event_context/tevent_context/ in smbsock_any_connectVolker Lendecke2011-08-231-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 23 18:21:58 CEST 2011 on sn-devel-104
* s/event_context/tevent_context/ in smbsock_connectVolker Lendecke2011-08-231-2/+2
|
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-091-1/+1
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3: Fix smbsock_connectVolker Lendecke2011-05-281-1/+1
| | | | If all connection attempts fail, return immediately. Plain bug.
* s3: Paranoia in smbsock_connect_state_destructorVolker Lendecke2011-05-141-0/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat May 14 14:19:01 CEST 2011 on sn-devel-104
* s3-includes: finally only include client.h when libsmb is used.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* s3-libsmb: run minimal_includes.pl.Günther Deschner2011-05-051-1/+0
| | | | Guenther
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
* s3: Add a 10-second timeout for the 445 or netbios connection to a DCVolker Lendecke2011-04-251-1/+12
|
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3: Fix connecting to port-139 only serversVolker Lendecke2011-01-221-3/+5
| | | | | | | | When the TCP RST came before the 5 msecs timeout kicked in, we viewed this as final, as state->req_139 was not set yet. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 22 17:42:41 CET 2011 on sn-devel-104
* s3: Allow more control over smbsock_[any_]connectVolker Lendecke2010-12-291-25/+88
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Dec 29 23:30:44 CET 2010 on sn-devel-104
* s3: Retry *SMBSERVER in nb_connectVolker Lendecke2010-12-221-2/+47
|
* s3: Add smbsock_any_connectVolker Lendecke2010-12-221-1/+221
|
* s3: Add an async smbsock_connectVolker Lendecke2010-12-221-0/+308
This connects to 445 and after 5 milliseconds also to 139. It treats a netbios session setup failure as equivalent as a TCP connect failure. So if 139 is faster but fails the nb session setup, the 445 still has the chance to succeed.