Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-14 Thread Richard Sharpe
On Tue, 14 May 2002, Christopher R. Hertel wrote: > RFC 1002: 4.2.1.1: > RA3 Recursion Available Flag. > Only valid in responses from a NetBIOS Name > Server -- must be zero in all other > responses. > > ..so Microsoft are gett

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-14 Thread Christopher R . Hertel
On Tue, May 14, 2002 at 05:03:46PM +0930, Richard Sharpe wrote: : > Looke like all and sundry set the bit! Oh... That odd bit that says that RA should be set (RFC 1002, section 4.2.15) is in the section that describes the REDIRECT NAME QUERY RESPONSE, which no one implements (for good reason). T

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-14 Thread Christopher R . Hertel
RFC 1002: 4.2.1.1: RA3 Recursion Available Flag. Only valid in responses from a NetBIOS Name Server -- must be zero in all other responses. ..so Microsoft are getting it wrong. Not surprising, I suppose. The RFCs are contradic

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-14 Thread Gerald Carter
If nmblookup is modified to print these flags, someone needs to make sure these descriptions get in the man page. cheers, jerry On Mon, 13 May 2002, Christopher R. Hertel wrote: > For those just tuning in from home, here's a rundown of the flag > values we are talking about: > > R -

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-14 Thread Gerald Carter
On Tue, 14 May 2002, Richard Sharpe wrote: > OK, I have added support for these flags to name_query, and have modified > all places that use it, I believe. > > However, I have not modified nmblookup.c to print the results out as > yet, as it requires some thought, but those who want to can expe

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Richard Sharpe
On Mon, 13 May 2002, Christopher R. Hertel wrote: > Sorry. Just to be clear, the older version of Samba that I'm running > returns RA TRUE *if* it is running as a WINS server. > > I don't know what a newer version of Samba does, but I doubt this has > changed and I really should check to see wh

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Richard Sharpe
On Mon, 13 May 2002, Christopher R. Hertel wrote: > Sorry. Just to be clear, the older version of Samba that I'm running > returns RA TRUE *if* it is running as a WINS server. > > I don't know what a newer version of Samba does, but I doubt this has > changed and I really should check to see wh

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Christopher R . Hertel
Sorry. Just to be clear, the older version of Samba that I'm running returns RA TRUE *if* it is running as a WINS server. I don't know what a newer version of Samba does, but I doubt this has changed and I really should check to see what W/NT and W2K do if they are running the WINS server. Chri

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Christopher R . Hertel
> On Mon, 13 May 2002, Christopher R. Hertel wrote: : > > RA - Recursion Available. > > Should only be set in messages which come from the NBNS (WINS) > > server itself. Note that a machine that is running WINS will > > also have a local name table. If the reply comes from the > >

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Christopher R. Hertel
Richard Sharpe wrote: : > These would be nice, except that I have found that these bits are > all separate BOOLs in the decoded structure, instead of being a > bit-field. > > I will have to re-assemble them :-( Eee. Yuck. -- Christopher R. Hertel -)- University of Mi

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Richard Sharpe
On Mon, 13 May 2002, Christopher R. Hertel wrote: > > 1) It would be nice to see the flags on the outgoing packet as well >as the repl[y|ies]. > > 2) It might make sense produce this output on debug level 1, rather >than by default. Or perhaps incoming flags at -d1 and both sets >a

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Christopher R. Hertel
Richard Sharpe wrote: : > > > Any objections? > > > > Nope. > > Actually, I was thinking that it would be useful to return the entire > set of flags. > > This might be better than returning just one of them. > > Any further thoughts? Well, you've got me thinking (always a dangerous thing to do

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Richard Sharpe
On Mon, 13 May 2002, Gerald Carter wrote: > On Mon, 13 May 2002, Richard Sharpe wrote: > > > Hi, > > > > I would like to add an additional flag to both name_query and > > node_status_query. > > > > This flag will return the value of the Recursion Available flag in the > > nmb packet header.

Re: Adding Recursion Available bit to name_query and node_status_query

2002-05-13 Thread Gerald Carter
On Mon, 13 May 2002, Richard Sharpe wrote: > Hi, > > I would like to add an additional flag to both name_query and > node_status_query. > > This flag will return the value of the Recursion Available flag in the > nmb packet header. > > I am sure some people will find it useful. > > Any obje