Extended nodelist with Txx flags
This commit is contained in:
parent
af0c0ed2e1
commit
3970593dfa
@ -292,6 +292,8 @@ typedef struct _node {
|
|||||||
unsigned long oflags; /* Online flags */
|
unsigned long oflags; /* Online flags */
|
||||||
unsigned long xflags; /* Request flags */
|
unsigned long xflags; /* Request flags */
|
||||||
char *uflags[MAXUFLAGS]; /* User flags */
|
char *uflags[MAXUFLAGS]; /* User flags */
|
||||||
|
int t1; /* T flag, first char */
|
||||||
|
int t2; /* T flag, second char */
|
||||||
} node;
|
} node;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
*
|
*
|
||||||
* File ..................: nodelist.c
|
* $Id$
|
||||||
* Purpose ...............: Read nodelists information
|
* Purpose ...............: Read nodelists information
|
||||||
* Last modification date : 06-Jan-2001
|
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2001
|
* Copyright (C) 1997-2001
|
||||||
@ -400,6 +399,13 @@ node *getnlent(faddr *addr)
|
|||||||
for (j = 0; xkey[j].key; j++)
|
for (j = 0; xkey[j].key; j++)
|
||||||
if (strcasecmp(p, xkey[j].key) == 0)
|
if (strcasecmp(p, xkey[j].key) == 0)
|
||||||
nodebuf.xflags |= xkey[j].flag;
|
nodebuf.xflags |= xkey[j].flag;
|
||||||
|
if ((p[0] == 'T') && (strlen(p) == 3)) {
|
||||||
|
/*
|
||||||
|
* System open hours flag
|
||||||
|
*/
|
||||||
|
nodebuf.t1 = p[1];
|
||||||
|
nodebuf.t2 = p[2];
|
||||||
|
}
|
||||||
if (!stdflag) {
|
if (!stdflag) {
|
||||||
if (ixflag < MAXUFLAGS) {
|
if (ixflag < MAXUFLAGS) {
|
||||||
nodebuf.uflags[ixflag++] = p;
|
nodebuf.uflags[ixflag++] = p;
|
||||||
|
Reference in New Issue
Block a user