[Netadm-devel] gwc/include sysdef.h,1.3,1.4
Status: Beta
Brought to you by:
linuxpark
From: linuxpark <lin...@us...> - 2006-02-27 18:34:35
|
Update of /cvsroot/netadm/gwc/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30628/include Modified Files: sysdef.h Log Message: ADD: define strmap to use in gwc-v1.0-pre3 Index: sysdef.h =================================================================== RCS file: /cvsroot/netadm/gwc/include/sysdef.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sysdef.h 25 Feb 2006 23:41:14 -0000 1.3 --- sysdef.h 27 Feb 2006 18:34:26 -0000 1.4 *************** *** 213,217 **** union { unsigned short port; ! unsigned short icmptype; } u; } fc_svc_t; --- 213,217 ---- union { unsigned short port; ! sys_icmp_type_e icmptype; } u; } fc_svc_t; *************** *** 242,271 **** /* TODO: delete soon after completing flow control */ /* sys_host_pol_t/flag */ ! #define BLOCK_HOST 0x0001 ! #define MODIFY_SEQ 0x0002 ! #define MAX_PKTRATE 65535 typedef struct { /* struct in_addr ip; */ ! char name[OL]; ! int ip; ! unsigned short flag; ! int max_pktrate; } sys_host_pol_t; ! #define AUTO_STATE_INIT 0 ! #define AUTO_STATE_S1 1 ! #define AUTO_STATE_M1 2 ! #define AUTO_STATE_S2 3 ! #define AUTO_STATE_M2 4 ! #define MIN_AUTO_SINT 1 ! #define MAX_AUTO_SINT 2147 /* If one step is over 35.783 min, error will occur */ ! #define MIN_AUTO_MINT MIN_AUTO_SINT ! #define MAX_AUTO_MINT MAX_AUTO_SINT ! #define AUTO_FROMMIN 0 ! #define AUTO_FROMMAX 1 ! #define MIN_AUTO_CNUM 1 ! #define MAX_AUTO_CNUM 1280 /* --- 242,271 ---- /* TODO: delete soon after completing flow control */ /* sys_host_pol_t/flag */ ! #define BLOCK_HOST 0x0001 ! #define MODIFY_SEQ 0x0002 ! #define MAX_PKTRATE 65535 typedef struct { /* struct in_addr ip; */ ! char name[OL]; ! int ip; ! unsigned short flag; ! int max_pktrate; } sys_host_pol_t; ! #define AUTO_STATE_INIT 0 ! #define AUTO_STATE_S1 1 ! #define AUTO_STATE_M1 2 ! #define AUTO_STATE_S2 3 ! #define AUTO_STATE_M2 4 ! #define MIN_AUTO_SINT 1 ! #define MAX_AUTO_SINT 2147 /* If one step is over 35.783 min, error will occur */ ! #define MIN_AUTO_MINT MIN_AUTO_SINT ! #define MAX_AUTO_MINT MAX_AUTO_SINT ! #define AUTO_FROMMIN 0 ! #define AUTO_FROMMAX 1 ! #define MIN_AUTO_CNUM 1 ! #define MAX_AUTO_CNUM 1280 /* *************** *** 273,287 **** */ typedef struct { ! int type; ! int state; } arg_t; typedef struct { ! int sint_1; /* stopping interval */ ! int sint_2; ! int mint_1; /* moving interval */ ! int mint_2; ! int ilevel; /* 0: from min, 1: from max */ ! int cnum; /* number of cycle */ } sys_autoconf_t; --- 273,287 ---- */ typedef struct { ! int type; ! int state; } arg_t; typedef struct { ! int sint_1; /* stopping interval */ ! int sint_2; ! int mint_1; /* moving interval */ ! int mint_2; ! int ilevel; /* 0: from min, 1: from max */ ! int cnum; /* number of cycle */ } sys_autoconf_t; |