added suppport for unexpected udp/138 packets
authorAndrew Tridgell <tridge@samba.org>
Mon, 3 Jan 2000 06:30:50 +0000 (06:30 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 3 Jan 2000 06:30:50 +0000 (06:30 +0000)
commit632b4f806eae15e319b8f62caef5d25634cf720c
treec80dee43c351194241e6b989d11df5c7050e2ff7
parent8d1d27b43c9b5a8e6252126ccd15054b003b5f28
added suppport for unexpected udp/138 packets

I also fixed up the lookup_pdc_name() code so that it now works, even
with a NT server that insists on replying to udp/138.

The method I used to match packets was to use the mailslot string as a
datagram ID. The true dgm_id doesn't work as NT doesn't set it
correctly. uggh.

PS: Jeremy, I had to change your code quite a bit, are you sure this
worked with a Samba PDC?? The code looked broken, it got the offsets
wrong in the SMB portion of the packet and filled in the IP
incorrectly.
(This used to be commit 32f66f4ea63038cb4b3785bdf1762abdde076f5d)
source3/include/proto.h
source3/libsmb/namequery.c
source3/libsmb/nmblib.c
source3/libsmb/unexpected.c
source3/nmbd/nmbd_packets.c
source3/smbd/password.c