*/
#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
/* if registered with a wins server, then this lists the server being
used */
- char *wins_server;
+ const char *wins_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"