|
Packit |
667938 |
#ifndef _VARS_H_
|
|
Packit |
667938 |
#define _VARS_H_
|
|
Packit |
667938 |
|
|
Packit |
667938 |
FILE *fh=NULL,*fm=NULL; //html and mrtg files
|
|
Packit |
667938 |
int xdebug=0; //say if produce extreme debug
|
|
Packit |
667938 |
int comment=0; //say if inside of a comment block
|
|
Packit |
667938 |
char cfgdir[257]=""; //path of the cfg file
|
|
Packit |
667938 |
|
|
Packit |
667938 |
#define N_HOSTS 4096
|
|
Packit |
667938 |
int nhosts=0; //# of defined states
|
|
Packit |
667938 |
char hostsn[N_HOSTS][65]; //host name
|
|
Packit |
667938 |
char hostsi[N_HOSTS][33]; //host definition as interface
|
|
Packit |
667938 |
|
|
Packit |
667938 |
int identl=0;
|
|
Packit |
667938 |
char body[257]=""; //code appended to body tag
|
|
Packit |
667938 |
char base[257]=""; //base for html files
|
|
Packit |
667938 |
|
|
Packit |
667938 |
#define N_ALIAS 128
|
|
Packit |
667938 |
int nalias=0; //# of defined aliases
|
|
Packit |
667938 |
char aliasn[N_ALIAS][33]; //name of the aliases and their contents
|
|
Packit |
667938 |
char aliasi[N_ALIAS][129]; //name of the interfaces and their resolv
|
|
Packit |
667938 |
|
|
Packit |
667938 |
int usealias=0; //say if is allowed to use aliases
|
|
Packit |
667938 |
int chngname=0; //say if change the name of the output files
|
|
Packit |
667938 |
int conv=0; //say if change or not the name of the files
|
|
Packit |
667938 |
|
|
Packit |
667938 |
char title[65]; //title of the html page
|
|
Packit |
667938 |
|
|
Packit |
667938 |
#define N_MK 128
|
|
Packit |
667938 |
int nmkr[4]={ 0, //# of files procesed for mkd
|
|
Packit |
667938 |
0, //# of files procesed for mkw
|
|
Packit |
667938 |
0, //# of files procesed for mkm
|
|
Packit |
667938 |
0}; //# of files procesed for mky
|
|
Packit |
667938 |
char mkrn[N_MK][8][257]; //0=name of the cfg procesed for mkd
|
|
Packit |
667938 |
//1=name of the cfg procesed for mkw
|
|
Packit |
667938 |
//2=name of the cfg procesed for mkm
|
|
Packit |
667938 |
//3=name of the cfg procesed for mky
|
|
Packit |
667938 |
//4=name of the router procesed for mkd
|
|
Packit |
667938 |
//5=name of the router procesed for mkw
|
|
Packit |
667938 |
//6=name of the router procesed for mkm
|
|
Packit |
667938 |
//7=name of the router procesed for mky
|
|
Packit |
667938 |
|
|
Packit |
667938 |
FILE* mkri[N_MK][4]; //0=FILE* for mkd
|
|
Packit |
667938 |
//1=FILE* for mkw
|
|
Packit |
667938 |
//2=FILE* for mkm
|
|
Packit |
667938 |
//3=FILE* for mky
|
|
Packit |
667938 |
|
|
Packit |
667938 |
char mrtgoutpath[256]; //used be convname2ip and convip2name
|
|
Packit |
667938 |
|
|
Packit |
667938 |
#endif
|