Hi,
I'm the author of lisa (http://lisa-home.sourceforge.net).
Currently I'm trying to include netbios name lookup into my program and am 
using the sources from nmblookup.
Can you please help me ?
What is the meaning of these status flags and the status type or why can I 
find docs ?
printf("%s <%x> - %s\n", 
         cleanname, 
         status[i].type,      //   <----- this one 
          node_status_flags(status[i].flags));
char *node_status_flags(unsigned char flags)
{
   static fstring ret;
   strcpy(ret,"");
// and these flags 
   strcat(ret, (flags & 0x80) ? "<GROUP> " : "       
");
   if ((flags & 0x60) == 0x00) strcat(ret,"B ");
   if ((flags & 0x60) == 0x20) strcat(ret,"P ");
   if ((flags & 0x60) == 0x40) strcat(ret,"M ");
   if ((flags & 0x60) == 0x60) strcat(ret,"H ");
   if (flags & 0x10) strcat(ret,"<DEREGISTERING> ");
   if (flags & 0x08) strcat(ret,"<CONFLICT> ");
   if (flags & 0x04) strcat(ret,"<ACTIVE> ");
   if (flags & 0x02) strcat(ret,"<PERMANENT> ");
   return ret;
}
nmblookup for my machine produces the following, and I don't know how to 
interpret it.
received 7 names
        ALEX2_PC        <00> -         B <ACTIVE>
        ALEX2_PC        <03> -         B <ACTIVE>
        ALEX2_PC        <20> -         B <ACTIVE>
        ..__MSBROWSE__. <01> - <GROUP> B <ACTIVE>
        HAUSQ           <00> - <GROUP> B <ACTIVE>
        HAUSQ           <1d> -         B <ACTIVE>
        HAUSQ           <1e> - <GROUP> B <ACTIVE>
Thanks
Alex
On Wed, 31 Oct 2001, aleXXX wrote:> What is the meaning of these status flags and the status type or why can I > find docs ? > > printf("%s <%x> - %s\n", > cleanname, > status[i].type, // <----- this oneThe resource byte. See msdn.microsoft.com or the NT Resource Kit.> node_status_flags(status[i].flags)); > > char *node_status_flags(unsigned char flags) > { > static fstring ret; > strcpy(ret,""); > // and these flags > strcat(ret, (flags & 0x80) ? "<GROUP> " : " "); > if ((flags & 0x60) == 0x00) strcat(ret,"B "); > if ((flags & 0x60) == 0x20) strcat(ret,"P "); > if ((flags & 0x60) == 0x40) strcat(ret,"M "); > if ((flags & 0x60) == 0x60) strcat(ret,"H ");The netbios node type (see rfc1001/1002)> if (flags & 0x10) strcat(ret,"<DEREGISTERING> "); > if (flags & 0x08) strcat(ret,"<CONFLICT> "); > if (flags & 0x04) strcat(ret,"<ACTIVE> ");These are our own internal flags IIRC relating to the registration status of the name. cheers, jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--