s3: Basic infrastructure for /tmp/.nmbd/unexpected
authorVolker Lendecke <vl@samba.org>
Tue, 4 Jan 2011 16:12:17 +0000 (17:12 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 7 Jan 2011 12:28:03 +0000 (13:28 +0100)
commitb2c62d639d7fd565d39a999d500018b290b5279f
treea84e9d1e4a78289f6e4b627fdfdabc5ddf4d7b0b
parent6a0a0478ad6f77e3279775dcb0dad51bc3b1457a
s3: Basic infrastructure for /tmp/.nmbd/unexpected

This provides the framework to replace the unexpected.tdb file. Nmbd will
listen on /tmp/.nmbd/unexpected. A client interested in unexpected packets
connects there. It sends a nb_packet_query plus a potential mailslot name for
dgram packets. It waits for a single ack byte to avoid races. After that has
happened, nmbd will pass down all matching packets through that socket.

nb_packet_server_create and nb_packet_dispatch are the nmbd routines,
nb_packet_reader_send/recv and nb_packet_read_send/recv are the client ones.
source3/include/proto.h
source3/libsmb/unexpected.c