summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-04-25 12:42:32 +0000
committerVolker Lendecke <vlendec@samba.org>2003-04-25 12:42:32 +0000
commit10dc904bb417c86474b06f8f56ee87211389fbca (patch)
tree8b72d4f62ce8223adef638eb15a550300bacd93f /source3/nmbd/nmbd.c
parentabd9926240f528c26ed4ad322e42f02ecf36508e (diff)
downloadsamba-10dc904bb417c86474b06f8f56ee87211389fbca.tar.gz
samba-10dc904bb417c86474b06f8f56ee87211389fbca.tar.bz2
samba-10dc904bb417c86474b06f8f56ee87211389fbca.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 (This used to be commit fe637c690b671ddb5ccbf506825a9ede6abf6668)
Diffstat (limited to 'source3/nmbd/nmbd.c')
-rw-r--r--source3/nmbd/nmbd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 8e7759d90b..d9300f4668 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/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;