[Netadm-devel] gwc/include global.h,1.7,1.8 sysutil.h,1.5,1.6
Status: Beta
Brought to you by:
linuxpark
From: linuxpark <lin...@us...> - 2006-05-09 00:59:35
|
Update of /cvsroot/netadm/gwc/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28605/include Modified Files: global.h sysutil.h Log Message: ADD1: sysklog.ko, gwcklogd. MOD1: make deactivate gwcguid. MOD2: scripts/gwc, scripts/install.sh according to ADD1 and MOD1. FIX1: fix select maxfd from klogcmdtab[MAXSYSIDX] to klogcmdtab [MAXSYSIDX -1]. DEL1: remove debug code. ADD2: CHANGES according to ADD1, MOD1 MOD3: change syslog.conf to be able to handling gwcklogd log to local1 (gwc.log). OTHERS: comment and my email address. Index: sysutil.h =================================================================== RCS file: /cvsroot/netadm/gwc/include/sysutil.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sysutil.h 6 Apr 2006 15:09:37 -0000 1.5 --- sysutil.h 6 May 2006 17:33:33 -0000 1.6 *************** *** 14,17 **** --- 14,18 ---- #include <stdarg.h> #include "sysipc.h" + #include "slog.h" #define NIPQUAD(addr) \ *************** *** 28,32 **** #ifdef TC_DEBUG ! #define tcdprintf( fmt, args... ) printf( "tc(%d): " fmt, __LINE__,##args) #else --- 29,33 ---- #ifdef TC_DEBUG ! #define tcdprintf( fmt, args... ) printf( "tc(%d): " fmt, __LINE__, ##args) #else Index: global.h =================================================================== RCS file: /cvsroot/netadm/gwc/include/global.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** global.h 30 Apr 2006 18:47:25 -0000 1.7 --- global.h 6 May 2006 17:33:33 -0000 1.8 *************** *** 62,65 **** --- 62,66 ---- #define MAXBUF 8192 #define MINBUF MAXBUF/32 /* 256 */ + #define MAXPATHLEN MINBUF #define BUFLEN 8192/4 #define MAXFNLEN 256 *************** *** 77,79 **** --- 78,98 ---- #define SZKMODNODE DEVICE_NAME + /* sysklog.ko and gwcklogd reference these macro definition below --LP */ + #define MAXLOGLINE MAXBUF + #define GWC_PF_IDX 0 + #define GWC_KSYS_IDX 1 + #define MAXSYSIDX (GWC_KSYS_IDX + 1) + #define DEV_DIR "/dev" + #define GWC_PROC_DIR "gwc" + #define PF_PROC_ENTRY "gwc_pf" + #define SYS_PROC_ENTRY "gwc_ksys" + #define GWC_PF_DNAME PF_PROC_ENTRY + #define GWC_SYS_DNAME SYS_PROC_ENTRY + #define GWC_PF_LOG "gwc_pf.log" + #define GWC_KSYS_LOG "gwc_ksys.log" + #define GWC_PF_MAJORNUM 220 + #define GWC_SYS_MAJORNUM 221 + #define GWC_KLOGD_TIMEOUT 10 + #define GWC_KLOGDPROC_TIMEOUT 2 + #endif /* __SYS_GLOBAL_H */ |