diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-31 04:56:16 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-31 04:56:16 +0000 |
commit | 4516a14dbbc03f2ae2ce3c4d4e22e11e24a8a42f (patch) | |
tree | 25a6e27d0e4fe6e971089c9b6674181f31e60250 /source3/lib | |
parent | 81b69dc79cccd575d33b62ddf7941c5b3c44fdfe (diff) | |
download | samba-4516a14dbbc03f2ae2ce3c4d4e22e11e24a8a42f.tar.gz samba-4516a14dbbc03f2ae2ce3c4d4e22e11e24a8a42f.tar.bz2 samba-4516a14dbbc03f2ae2ce3c4d4e22e11e24a8a42f.zip |
added support for smbd listening on port 445 and 139. It now listens
on both by default, and you can specify a list of ports to listen on
either with "smb ports = " in smb.conf or using the -p option to smbd.
this is needed for proper netbiosless operation.
(This used to be commit 5dee0a7b5e0fcb298a9d36661c80e60d8b9bcc3a)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 4f1f2a1470..5e2b7c5ed9 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -708,7 +708,7 @@ int open_socket_in( int type, int port, int dlevel, uint32 socket_addr, BOOL reb /* now we've got a socket - we need to bind it */ if( bind( res, (struct sockaddr *)&sock, sizeof(sock) ) == -1 ) { - if( DEBUGLVL(dlevel) && (port == SMB_PORT || port == NMB_PORT) ) { + if( DEBUGLVL(dlevel) && (port == SMB_PORT1 || port == SMB_PORT2 || port == NMB_PORT) ) { dbgtext( "bind failed on port %d ", port ); dbgtext( "socket_addr = %s.\n", inet_ntoa( sock.sin_addr ) ); dbgtext( "Error = %s\n", strerror(errno) ); |