summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/nodestatus.c2
-rw-r--r--source4/nbt_server/packet.c34
-rw-r--r--source4/torture/nbt/winsreplication.c20
3 files changed, 28 insertions, 28 deletions
diff --git a/source4/nbt_server/nodestatus.c b/source4/nbt_server/nodestatus.c
index 8dc1f45053..f71746ab30 100644
--- a/source4/nbt_server/nodestatus.c
+++ b/source4/nbt_server/nodestatus.c
@@ -54,7 +54,7 @@ static void nbtd_node_status_reply(struct nbt_name_socket *nbtsock,
packet->name_trn_id = request_packet->name_trn_id;
packet->ancount = 1;
- packet->operation = NBT_OPCODE_QUERY | NBT_FLAG_REPLY | NBT_FLAG_AUTHORITIVE;
+ packet->operation = NBT_OPCODE_QUERY | NBT_FLAG_REPLY | NBT_FLAG_AUTHORITATIVE;
packet->answers = talloc_array(packet, struct nbt_res_rec, 1);
if (packet->answers == NULL) goto failed;
diff --git a/source4/nbt_server/packet.c b/source4/nbt_server/packet.c
index af96a0130b..2857f1aa9b 100644
--- a/source4/nbt_server/packet.c
+++ b/source4/nbt_server/packet.c
@@ -121,10 +121,10 @@ void nbtd_name_query_reply(struct nbt_name_socket *nbtsock,
packet->name_trn_id = request_packet->name_trn_id;
packet->ancount = 1;
- packet->operation =
- NBT_FLAG_REPLY |
- NBT_OPCODE_QUERY |
- NBT_FLAG_AUTHORITIVE |
+ packet->operation =
+ NBT_FLAG_REPLY |
+ NBT_OPCODE_QUERY |
+ NBT_FLAG_AUTHORITATIVE |
NBT_FLAG_RECURSION_DESIRED |
NBT_FLAG_RECURSION_AVAIL;
@@ -177,10 +177,10 @@ void nbtd_negative_name_query_reply(struct nbt_name_socket *nbtsock,
packet->name_trn_id = request_packet->name_trn_id;
packet->ancount = 1;
- packet->operation =
- NBT_FLAG_REPLY |
- NBT_OPCODE_QUERY |
- NBT_FLAG_AUTHORITIVE |
+ packet->operation =
+ NBT_FLAG_REPLY |
+ NBT_OPCODE_QUERY |
+ NBT_FLAG_AUTHORITATIVE |
NBT_RCODE_NAM;
packet->answers = talloc_array(packet, struct nbt_res_rec, 1);
@@ -221,10 +221,10 @@ void nbtd_name_registration_reply(struct nbt_name_socket *nbtsock,
packet->name_trn_id = request_packet->name_trn_id;
packet->ancount = 1;
- packet->operation =
- NBT_FLAG_REPLY |
+ packet->operation =
+ NBT_FLAG_REPLY |
NBT_OPCODE_REGISTER |
- NBT_FLAG_AUTHORITIVE |
+ NBT_FLAG_AUTHORITATIVE |
NBT_FLAG_RECURSION_DESIRED |
NBT_FLAG_RECURSION_AVAIL |
rcode;
@@ -269,10 +269,10 @@ void nbtd_name_release_reply(struct nbt_name_socket *nbtsock,
packet->name_trn_id = request_packet->name_trn_id;
packet->ancount = 1;
- packet->operation =
- NBT_FLAG_REPLY |
+ packet->operation =
+ NBT_FLAG_REPLY |
NBT_OPCODE_RELEASE |
- NBT_FLAG_AUTHORITIVE |
+ NBT_FLAG_AUTHORITATIVE |
rcode;
packet->answers = talloc_array(packet, struct nbt_res_rec, 1);
@@ -315,10 +315,10 @@ void nbtd_wack_reply(struct nbt_name_socket *nbtsock,
packet->name_trn_id = request_packet->name_trn_id;
packet->ancount = 1;
- packet->operation =
- NBT_FLAG_REPLY |
+ packet->operation =
+ NBT_FLAG_REPLY |
NBT_OPCODE_WACK |
- NBT_FLAG_AUTHORITIVE;
+ NBT_FLAG_AUTHORITATIVE;
packet->answers = talloc_array(packet, struct nbt_res_rec, 1);
if (packet->answers == NULL) goto failed;
diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c
index caa2d33ede..ee4b8744e4 100644
--- a/source4/torture/nbt/winsreplication.c
+++ b/source4/torture/nbt/winsreplication.c
@@ -9554,10 +9554,10 @@ static void test_conflict_owned_active_vs_replica_handler_query(struct nbt_name_
}
/* send a positive reply */
- rep_packet->operation =
- NBT_FLAG_REPLY |
- NBT_OPCODE_QUERY |
- NBT_FLAG_AUTHORITIVE |
+ rep_packet->operation =
+ NBT_FLAG_REPLY |
+ NBT_OPCODE_QUERY |
+ NBT_FLAG_AUTHORITATIVE |
NBT_FLAG_RECURSION_DESIRED |
NBT_FLAG_RECURSION_AVAIL;
@@ -9579,9 +9579,9 @@ static void test_conflict_owned_active_vs_replica_handler_query(struct nbt_name_
} else {
/* send a negative reply */
rep_packet->operation =
- NBT_FLAG_REPLY |
- NBT_OPCODE_QUERY |
- NBT_FLAG_AUTHORITIVE |
+ NBT_FLAG_REPLY |
+ NBT_OPCODE_QUERY |
+ NBT_FLAG_AUTHORITATIVE |
NBT_RCODE_NAM;
rep_packet->answers[0].rr_type = NBT_QTYPE_NULL;
@@ -9632,10 +9632,10 @@ static void test_conflict_owned_active_vs_replica_handler_release(
rep_packet->name_trn_id = req_packet->name_trn_id;
rep_packet->ancount = 1;
- rep_packet->operation =
- NBT_FLAG_REPLY |
+ rep_packet->operation =
+ NBT_FLAG_REPLY |
NBT_OPCODE_RELEASE |
- NBT_FLAG_AUTHORITIVE;
+ NBT_FLAG_AUTHORITATIVE;
rep_packet->answers = talloc_array(rep_packet, struct nbt_res_rec, 1);
if (rep_packet->answers == NULL) return;