r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
[jra/samba/.git] / source4 / nbt_server / nbt_server.h
index a698ebf1a027c02bb658eb0033a594f2de22a528..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
@@ -35,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;
 };
 
 
@@ -47,6 +51,7 @@ struct nbtd_interface {
        const char *bcast_address;
        const char *netmask;
        struct nbt_name_socket *nbtsock;
+       struct nbt_dgram_socket *dgmsock;
        struct nbtd_iface_name *names;
 };
 
@@ -68,14 +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)
+
+#include "nbt_server/nbt_server_proto.h"