*/
#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;
};
const char *bcast_address;
const char *netmask;
struct nbt_name_socket *nbtsock;
+ struct nbt_dgram_socket *dgmsock;
struct nbtd_iface_name *names;
};
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"