From bd22848ad80dbe10551129325a59114d9a612f91 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 4 Feb 2005 01:39:10 +0000 Subject: r5210: changed server side nbt functions to be prefixed with nbtd_ instead of nbt_, so as to more clearly separate them from the client code in libcli/nbt/ (This used to be commit b07a7e35f26204055a99abf72438b5cd7ec35d3b) --- source4/nbt_server/query.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'source4/nbt_server/query.c') diff --git a/source4/nbt_server/query.c b/source4/nbt_server/query.c index 6dab18cfbe..911163f19e 100644 --- a/source4/nbt_server/query.c +++ b/source4/nbt_server/query.c @@ -28,11 +28,11 @@ /* send a name query reply */ -static void nbt_name_query_reply(struct nbt_name_socket *nbtsock, - struct nbt_name_packet *request_packet, - const char *src_address, int src_port, - struct nbt_name *name, uint32_t ttl, - uint16_t nb_flags, const char *address) +static void nbtd_name_query_reply(struct nbt_name_socket *nbtsock, + struct nbt_name_packet *request_packet, + const char *src_address, int src_port, + struct nbt_name *name, uint32_t ttl, + uint16_t nb_flags, const char *address) { struct nbt_name_packet *packet; @@ -77,9 +77,9 @@ failed: /* answer a name query */ -void nbt_request_query(struct nbt_name_socket *nbtsock, - struct nbt_name_packet *packet, - const char *src_address, int src_port) +void nbtd_request_query(struct nbt_name_socket *nbtsock, + struct nbt_name_packet *packet, + const char *src_address, int src_port) { struct nbt_iface_name *iname; struct nbt_name *name; @@ -89,14 +89,14 @@ void nbt_request_query(struct nbt_name_socket *nbtsock, /* see if its a node status query */ if (packet->qdcount == 1 && packet->questions[0].question_type == NBT_QTYPE_STATUS) { - nbt_query_status(nbtsock, packet, src_address, src_port); + nbtd_query_status(nbtsock, packet, src_address, src_port); return; } /* if its a WINS query then direct to our WINS server */ if ((packet->operation & NBT_FLAG_RECURSION_DESIRED) && !(packet->operation & NBT_FLAG_BROADCAST)) { - nbt_query_wins(nbtsock, packet, src_address, src_port); + nbtd_query_wins(nbtsock, packet, src_address, src_port); return; } @@ -107,14 +107,14 @@ void nbt_request_query(struct nbt_name_socket *nbtsock, /* see if we have the requested name on this interface */ name = &packet->questions[0].name; - iname = nbt_find_iname(iface, name, NBT_NM_ACTIVE); + iname = nbtd_find_iname(iface, name, NBT_NM_ACTIVE); if (iname == NULL) { DEBUG(7,("Query for %s<%02x> from %s - not found on %s\n", name->name, name->type, src_address, iface->ip_address)); return; } - nbt_name_query_reply(nbtsock, packet, src_address, src_port, - &iname->name, iname->ttl, iname->nb_flags, - iface->ip_address); + nbtd_name_query_reply(nbtsock, packet, src_address, src_port, + &iname->name, iname->ttl, iname->nb_flags, + iface->ip_address); } -- cgit