From 10dc904bb417c86474b06f8f56ee87211389fbca Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 25 Apr 2003 12:42:32 +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 fe637c690b671ddb5ccbf506825a9ede6abf6668) --- source3/nmbd/nmbd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit