summaryrefslogtreecommitdiff
path: root/source4/nbt_server/query.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-04 01:39:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:31 -0500
commitbd22848ad80dbe10551129325a59114d9a612f91 (patch)
treee3b9c1fe309a112bedef10a3c222e585fccdcce8 /source4/nbt_server/query.c
parent60d9b40ba4fec876b7288bd51340d6b302af00e3 (diff)
downloadsamba-bd22848ad80dbe10551129325a59114d9a612f91.tar.gz
samba-bd22848ad80dbe10551129325a59114d9a612f91.tar.bz2
samba-bd22848ad80dbe10551129325a59114d9a612f91.zip
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)
Diffstat (limited to 'source4/nbt_server/query.c')
-rw-r--r--source4/nbt_server/query.c28
1 files changed, 14 insertions, 14 deletions
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);
}