summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-09-29 22:06:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:13 -0500
commitc2d7914428f73d1826dffa893418fa286a5e9ab8 (patch)
treeeccaefe535f08bd17d42a1a863eecb78e0e271be /source4/libcli
parentc91fa5c504b05adb56cc645ad1fa82d5e73ec42e (diff)
downloadsamba-c2d7914428f73d1826dffa893418fa286a5e9ab8.tar.gz
samba-c2d7914428f73d1826dffa893418fa286a5e9ab8.tar.bz2
samba-c2d7914428f73d1826dffa893418fa286a5e9ab8.zip
r10627: - use a wrepl specific enum for the node type
- the unknown flag 0x10 seems to mean that this name was localy registered on this currently asked server, that flag is not present in replica records metze (This used to be commit ba3685c41dc934692bd653f4fe9c0ee451146c40)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/wrepl/winsrepl.c2
-rw-r--r--source4/libcli/wrepl/winsrepl.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c
index feeea321b1..aae77feb29 100644
--- a/source4/libcli/wrepl/winsrepl.c
+++ b/source4/libcli/wrepl/winsrepl.c
@@ -707,7 +707,7 @@ NTSTATUS wrepl_pull_names_recv(struct wrepl_request *req,
talloc_steal(io->out.names, wname->name.scope);
name->type = WREPL_NAME_TYPE(wname->flags);
name->state = WREPL_NAME_STATE(wname->flags);
- name->node = WREPL_NBT_NODE(wname->flags);
+ name->node = WREPL_NAME_NODE(wname->flags);
name->is_static = WREPL_NAME_IS_STATIC(wname->flags);
name->raw_flags = wname->flags;
name->version_id= wname->id;
diff --git a/source4/libcli/wrepl/winsrepl.h b/source4/libcli/wrepl/winsrepl.h
index 9b9362e4b3..e78f0464e7 100644
--- a/source4/libcli/wrepl/winsrepl.h
+++ b/source4/libcli/wrepl/winsrepl.h
@@ -106,11 +106,11 @@ struct wrepl_pull_table {
#define WREPL_NAME_TYPE(flags) (flags & WREPL_FLAGS_RECORD_TYPE)
#define WREPL_NAME_STATE(flags) ((flags & WREPL_FLAGS_RECORD_STATE)>>2)
-#define WREPL_NBT_NODE(flags) ((flags & WREPL_FLAGS_NODE_TYPE)<<8)
+#define WREPL_NAME_NODE(flags) ((flags & WREPL_FLAGS_NODE_TYPE)>>5)
#define WREPL_NAME_IS_STATIC(flags) ((flags & WREPL_FLAGS_IS_STATIC)?True:False)
#define WREPL_NAME_FLAGS(type, state, node, is_static) \
- (type | (state << 2) | (node>>8) | \
+ (type | (state << 2) | (node << 5) | \
(is_static ? WREPL_FLAGS_IS_STATIC : 0))
/*
@@ -127,7 +127,7 @@ struct wrepl_pull_names {
struct nbt_name name;
enum wrepl_name_type type;
enum wrepl_name_state state;
- enum nbt_node_type node;
+ enum wrepl_name_node node;
BOOL is_static;
uint32_t raw_flags;
uint64_t version_id;