From 23836e62fcb801348ba6aab6d3bbdcd88228ec27 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 25 Apr 2003 12:42:57 +0000 Subject: 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) --- source3/nmbd/nmbd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3') 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; -- cgit