nmblookup status meaning
Gerald (Jerry) Carter
jerry at samba.org
Wed Oct 31 19:39:03 GMT 2001
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 one
The 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--
More information about the samba
mailing list