summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-04-25 12:42:57 +0000
committerVolker Lendecke <vlendec@samba.org>2003-04-25 12:42:57 +0000
commit23836e62fcb801348ba6aab6d3bbdcd88228ec27 (patch)
treedd5b8d7da2d5aff8bd5527b71e1f361a893e9954 /source3
parent11b96ef57485a15ec72e1d890ce6ba01b2089464 (diff)
downloadsamba-23836e62fcb801348ba6aab6d3bbdcd88228ec27.tar.gz
samba-23836e62fcb801348ba6aab6d3bbdcd88228ec27.tar.bz2
samba-23836e62fcb801348ba6aab6d3bbdcd88228ec27.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 5e305e425592ede977880a347b2ed811d6376f75)
Diffstat (limited to 'source3')
-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 f87ab97798..eec447688f 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;