diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-04-25 12:42:32 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-04-25 12:42:32 +0000 |
commit | fe637c690b671ddb5ccbf506825a9ede6abf6668 (patch) | |
tree | 61786279ef23f1b9acdebf558ff99c865c408a32 /source/nmbd | |
parent | 759ba40b12a28caea87c0d8b3baea8bb69c92c89 (diff) | |
download | samba-fe637c690b671ddb5ccbf506825a9ede6abf6668.tar.gz samba-fe637c690b671ddb5ccbf506825a9ede6abf6668.tar.xz samba-fe637c690b671ddb5ccbf506825a9ede6abf6668.zip |
As nobody really objected to this patch, I opted to create facts :-)
This uses 'socket address' as the source address for nmbd. This way we
can again synchronize with the DMB if we have 'bind interfaces only'
to a virtual interface.
I'd love to see this in 2.2.9, but that is up to jerry or jra.
Volker
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index 8e7759d90b9..d9300f4668f 100644 --- a/source/nmbd/nmbd.c +++ b/source/nmbd/nmbd.c @@ -547,7 +547,9 @@ static BOOL open_sockets(BOOL isdaemon, int port) */ if ( isdaemon ) - ClientNMB = open_socket_in(SOCK_DGRAM, port,0,0,True); + ClientNMB = open_socket_in(SOCK_DGRAM, port, + interpret_addr(lp_socket_address()), + 0,True); else ClientNMB = 0; |