r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
[jra/samba/.git] / source4 / nbt_server / nbt_server.h
index e2b8584f5a8bc60ae842a309fe0ab387a053cc4f..e5a33ca5f15b4d6f3d8e637c341f823d989f3e21 100644 (file)
 */
 
 #include "libcli/nbt/libnbt.h"
+#include "libcli/wrepl/winsrepl.h"
 #include "libcli/dgram/libdgram.h"
+#include "librpc/gen_ndr/irpc.h"
+#include "lib/messaging/irpc.h"
 
 /* 
    a list of our registered names on each interface
@@ -36,7 +39,7 @@ struct nbtd_iface_name {
 
        /* if registered with a wins server, then this lists the server being
           used */
-       char *wins_server;
+       const char *wins_server;
 };
 
 
@@ -70,18 +73,20 @@ struct nbtd_server {
        struct nbtd_interface *wins_interface;
 
        struct wins_server *winssrv;
+
+       struct nbtd_statistics stats;
+
+       struct ldb_context *sam_ctx;
 };
 
 
 
 /* check a condition on an incoming packet */
-#define NBTD_ASSERT_PACKET(packet, src_address, test) do { \
+#define NBTD_ASSERT_PACKET(packet, src, test) do { \
        if (!(test)) { \
-               nbtd_bad_packet(packet, src_address, #test); \
+               nbtd_bad_packet(packet, src, #test); \
                return; \
        } \
 } while (0)
 
-/* this copes with the nasty hack that is the type 0x1c name */
-#define IS_GROUP_NAME(name, nb_flags) \
-       ((name)->type != NBT_NAME_LOGON && (nb_flags & NBT_NM_GROUP))
+#include "nbt_server/nbt_server_proto.h"