Code cleanups for nodelist processing

This commit is contained in:
Michiel Broek
2004-07-10 13:26:16 +00:00
parent 19ad88a5db
commit 962fe209c6
4 changed files with 464 additions and 309 deletions

View File

@@ -99,16 +99,12 @@ int nlinfo(faddr *addr)
* Show P flags
*/
printf("P Flag :");
if (nlent->pflag & 0x01)
if (nlent->pflag & NL_DOWN)
printf(" Down");
if (nlent->pflag & 0x02)
if (nlent->pflag & NL_HOLD)
printf(" Hold");
if (nlent->pflag & 0x04)
if (nlent->pflag & NL_PVT)
printf(" Pvt");
if (nlent->pflag & 0x10)
printf(" ISDN");
if (nlent->pflag & 0x20)
printf(" TCP/IP");
printf("\n");
if (nlent->t1) {
printf("System open : ");