Fix the unexpected.tdb database problem. Change nmbd to store the
authorJeremy Allison <jra@samba.org>
Sun, 14 Nov 2010 04:32:36 +0000 (20:32 -0800)
committerJeremy Allison <jra@samba.org>
Sun, 14 Nov 2010 05:22:45 +0000 (05:22 +0000)
commit52f252064817b4be4d45d9fdbb0ad07748a0f317
treecebc18dd44724ff5ff1e03da4a3736f89ec32f06
parent781c4aabb87e63df77c76a360b6ed5f6a20e6d58
Fix the unexpected.tdb database problem. Change nmbd to store the
transaction id of packets it was requested to send via a client, and
only store replies that match these ids. On the client side change
clients to always attempt to ask nmbd first for name_query and
node_status calls, and then fall back to doing socket calls if
we can't talk to nmbd (either nmbd is not running, or we're not
root and cannot open the messaging tdb's). Fix readers of unexpected.tdb
to delete packets they've successfully read.

This should fix a long standing problem of unexpected.tdb
growing out of control in noisy NetBIOS envioronments with
lots of bradcasts, yet still allow unprivileged client apps
to work mostly as well as they already did (nmblookup for
example) in an environment when nmbd isn't running.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sun Nov 14 05:22:45 UTC 2010 on sn-devel-104
source3/include/proto.h
source3/libsmb/clidgram.c
source3/libsmb/clidgram.h
source3/libsmb/dsgetdcname.c
source3/libsmb/namequery.c
source3/libsmb/unexpected.c
source3/nmbd/nmbd.c
source3/nmbd/nmbd_packets.c
source3/winbindd/winbindd_cm.c