Here are the traces that show the difference between Win2k WINS server and Samba4 WINS server for the following scenario: 1. There is a name registered in WINS that is no longer in use. 2. There is a windows client using that IP that has a different name. 3. A client tries to register the name no longer in use. In trace 1 the client with IP 192.168.1.30 is trying to register the name XPCLIENT1A#00. See in packet number 13 that Samba does not include the flags in the answers section of the wait for acknowledgement packet. In trace 2, the client with IP 192.168.1.30 taking the XPCLIENT2#00 name. See the correct format in packet 4 from a Win2k WINS server. The malformed wack packet seems to cause the client to continually request the name.
Created attachment 1999 [details] Samb4 wins server
Created attachment 2000 [details] Trace 2 - win2k server
I've reproduced this, and I'll attach the fix now
Created attachment 2005 [details] fix for the problem
Created attachment 2006 [details] better fix... this is a better patch, as we're only allowed to look at rdata.data.length in ndr_push mode
the fix is applied in revision 16691 and is part of samba4wins-1.0.4