nmblookup status meaning
aleXXX
alexander.neundorf at gmx.net
Wed Oct 31 13:00:23 GMT 2001
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
More information about the samba
mailing list