diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-06-08 05:37:33 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-06-08 05:37:33 +0000 |
commit | 3f6fb647e707d1c919f7942135e3225b78fb5b6c (patch) | |
tree | 0215b5625d266e5f1a936e0b647a87b7c8c7b686 /source3/nameresp.c | |
parent | 75390b839afbf0a7405bb814ad36e6bd9e719719 (diff) | |
download | samba-3f6fb647e707d1c919f7942135e3225b78fb5b6c.tar.gz samba-3f6fb647e707d1c919f7942135e3225b78fb5b6c.tar.xz samba-3f6fb647e707d1c919f7942135e3225b78fb5b6c.zip |
more changes from Luke
(This used to be commit df44f10d7492679dabe3b998e7bacfebbc49ea5e)
Diffstat (limited to 'source3/nameresp.c')
-rw-r--r-- | source3/nameresp.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/source3/nameresp.c b/source3/nameresp.c index 78e6274f8c..4f077f6d28 100644 --- a/source3/nameresp.c +++ b/source3/nameresp.c @@ -103,9 +103,9 @@ void expire_netbios_response_entries(time_t t) /**************************************************************************** reply to a netbios name packet ****************************************************************************/ -void reply_netbios_packet(struct packet_struct *p1,int trn_id,int rcode,int opcode, - struct nmb_name *rr_name,int rr_type,int rr_class,int ttl, - char *data,int len) +void reply_netbios_packet(struct packet_struct *p1,int trn_id,int rcode, + int opcode,BOOL recurse,struct nmb_name *rr_name, + int rr_type,int rr_class,int ttl,char *data,int len) { struct packet_struct p; struct nmb_packet *nmb = &p.packet.nmb; @@ -126,7 +126,7 @@ void reply_netbios_packet(struct packet_struct *p1,int trn_id,int rcode,int opco nmb->header.opcode = opcode; nmb->header.response = True; nmb->header.nm_flags.bcast = False; - nmb->header.nm_flags.recursion_available = True; + nmb->header.nm_flags.recursion_available = recurse; nmb->header.nm_flags.recursion_desired = True; nmb->header.nm_flags.trunc = False; nmb->header.nm_flags.authoritative = True; @@ -275,11 +275,9 @@ void queue_netbios_pkt_wins(int fd,int quest_type,enum cmd_type cmd, /**************************************************************************** create a name query response record **************************************************************************/ -static struct name_response_record *make_name_query_record( - enum cmd_type cmd,int id,int fd, - char *name,int type, - BOOL bcast,BOOL recurse, - struct in_addr ip) +static struct name_response_record * +make_name_query_record(enum cmd_type cmd,int id,int fd,char *name,int type, + BOOL bcast,BOOL recurse,struct in_addr ip) { struct name_response_record *n; |