summaryrefslogtreecommitdiffstats
path: root/source/namedbresp.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-10-02 14:09:22 +0000
committerAndrew Tridgell <tridge@samba.org>1996-10-02 14:09:22 +0000
commit20b6203dac4bbb43e4e7bea0b214496d76d679d9 (patch)
tree173087b470d3f84f26cc57d5b6e067fda3152d4c /source/namedbresp.c
parentb6c1c60d72e1625ca172b8f8eb07078413611468 (diff)
downloadsamba-20b6203dac4bbb43e4e7bea0b214496d76d679d9.tar.gz
samba-20b6203dac4bbb43e4e7bea0b214496d76d679d9.tar.xz
samba-20b6203dac4bbb43e4e7bea0b214496d76d679d9.zip
- a huge pile of changes from Luke which implement the browse.conf
stuff and also fix a pile of nmbd bugs. Unfortunately I found it very hard to disentangle the new features from the bug fixes so I am putting in the new code. I hope this is the last big pile of changes to the 1.9.16 series!
Diffstat (limited to 'source/namedbresp.c')
-rw-r--r--source/namedbresp.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/namedbresp.c b/source/namedbresp.c
index d89bfe8ae84..aad6188384f 100644
--- a/source/namedbresp.c
+++ b/source/namedbresp.c
@@ -92,8 +92,9 @@ void remove_response_record(struct subnet_record *d,
create a name query response record
**************************************************************************/
struct response_record *make_response_queue_record(enum state_type state,
- int id,uint16 fd,
- int quest_type, char *name,int type, int nb_flags, time_t ttl,
+ int id,uint16 fd, int quest_type,
+ int token, char *name,int type,
+ enum name_source source, int nb_flags, time_t ttl,
int server_type, char *my_name, char *my_comment,
BOOL bcast,BOOL recurse,
struct in_addr send_ip, struct in_addr reply_to_ip)
@@ -109,14 +110,17 @@ struct response_record *make_response_queue_record(enum state_type state,
n->state = state;
n->fd = fd;
n->quest_type = quest_type;
+
+ n->token = token;
make_nmb_name(&n->name, name, type, scope);
- n->nb_flags = nb_flags;
n->ttl = ttl;
+ n->source = source;
n->server_type = server_type;
n->bcast = bcast;
n->recurse = recurse;
+ n->reply.nb_flags = nb_flags;
+ n->reply.ip = reply_to_ip;
n->send_ip = send_ip;
- n->reply_to_ip = reply_to_ip;
StrnCpy(my_name , n->my_name , sizeof(n->my_name )-1);
StrnCpy(my_comment, n->my_comment, sizeof(n->my_comment)-1);