#include "SS5Main.h" int Stat_Err( void ); int Stat_Menu( void ); int Stat_Conn( char *addr ); int Stat_Bind( char *addr ); int Stat_Udp( char *addr ); int Stat_Authen( char *addr ); int Stat_Author( char *addr ); int main( int argc, char *argv[] ) { if( argc > 1 ) { if( !strncmp(argv[1],"CONNECT",sizeof("CONNECT")) ) Stat_Conn( "127.0.0.1" ); else if( !strncmp(argv[1],"BIND",sizeof("BIND")) ) Stat_Bind( "127.0.0.1" ); else if( !strncmp(argv[1],"UDP",sizeof("UDP")) ) Stat_Udp( "127.0.0.1" ); else if( !strncmp(argv[1],"AUTHEN",sizeof("AUTHEN")) ) Stat_Authen( "127.0.0.1" ); else if( !strncmp(argv[1],"AUTHOR",sizeof("AUTHOR")) ) Stat_Author( "127.0.0.1" ); else Stat_Err(); } else Stat_Menu(); return 0; } int Stat_Err( void ) { printf("Content-type: text/html\n\n"); printf("
BAD parameter:
Statistics Manager Menu:
CONNECT command counters:
| V4 | Number | V5 | Number |
| total | %lu | total | %lu |
| normal | %lu | normal | %lu |
| failed | %lu | failed | %lu |
| current | %lu | current | %lu |
BIND command counters:
| V4 | Number | V5 | Number |
| total | %lu | total | %lu |
| normal | %lu | normal | %lu |
| failed | %lu | failed | %lu |
| current | %lu | current | %lu |
UDP command counters:
| V5 | Number |
| total | %lu |
| normal | %lu |
| failed | %lu |
| current | %lu |
AUTHENTICATION counters:
| File | Number | EAP | Number | PAM | Number |
| total | %lu | total | %lu | total | %lu |
| normal | %lu | normal | %lu | normal | %lu |
| failed | %lu | failed | %lu | failed | %lu |
| current | %lu | current | %lu | current | %lu |
AUTHORIZATION counters:
| File | Number | Ldap | Number |
| total | %lu | total | %lu |
| normal | %lu | normal | %lu |
| failed | %lu | failed | %lu |
| current | %lu | current | %lu |