if (!define("GET_STR_BASE"))
{
//------ getPktbySTR(para)-------------------  
#define GET_STR_BASE            1000
#define PKTS_PARSE              GET_STR_BASE+1
#define PKTS_DMAC               GET_STR_BASE+2
#define PKTS_SMAC               GET_STR_BASE+3
#define PKTS_HDIP               GET_STR_BASE+4
#define PKTS_HSIP               GET_STR_BASE+5
#define PKTS_DIP                GET_STR_BASE+6
#define PKTS_SIP                GET_STR_BASE+7
#define PKTS_IGMP_DIP           GET_STR_BASE+8

#define DHCP_CLIENT_IP          GET_STR_BASE+101
#define DHCP_YOUR_IP            GET_STR_BASE+102
#define DHCP_SERVER_IP          GET_STR_BASE+103
#define DHCP_GATEWAY_IP         GET_STR_BASE+104
#define DHCP_OPTION             GET_STR_BASE+110 //all option 0~255
#define DHCP_SUBNET_MASK        DHCP_OPTION+1
#define DHCP_TIME_OFFSET        DHCP_OPTION+2
#define DHCP_DEFAULT_ROUTERS    DHCP_OPTION+3
#define DHCP_TIME_SERVERS       DHCP_OPTION+4
#define DHCP_DNS_SERVERS        DHCP_OPTION+6
#define DHCP_PRINT_SERVERS      DHCP_OPTION+9
#define DHCP_HOST_NAME          DHCP_OPTION+12
#define DHCP_REQUEST_IP         DHCP_OPTION+50
#define DHCP_SERVER_ID          DHCP_OPTION+54

//------ getPktbyInt(para)-------------------
#define GET_INT_BASE            2000
#define TAG_TYPE                GET_INT_BASE+2
#define TAG_VID                 GET_INT_BASE+3
#define DHCP_LEASE_TIME         DHCP_OPTION+51
#define DHCP_MESSAGE_TYPE       DHCP_OPTION+53
#define DHCP_RENEW_TIME         DHCP_OPTION+58
#define DHCP_REBIND_TIME        DHCP_OPTION+59

#define PKTS_TYPE               3000
//------ getPktbyInt(PKTS_TYPE) return value -  
#define ARP_REQUEST             PKTS_TYPE+1
#define ARP_REPLY               PKTS_TYPE+2
#define ICMP_REQUEST            PKTS_TYPE+3
#define ICMP_REPLY              PKTS_TYPE+4
#define IGMP_QUERY              PKTS_TYPE+5
#define IGMP_MEMBERSHIP_REPORT  PKTS_TYPE+6
#define IGMP_LEAVE_REPORT       PKTS_TYPE+7
#define UDP_PKTS                PKTS_TYPE+100
#define DHCP_PKTS               PKTS_TYPE+110
#define DHCPDISCOVER            DHCP_PKTS+1
#define DHCPOFFER               DHCP_PKTS+2
#define DHCPREQUEST             DHCP_PKTS+3
#define DHCPDECLINE             DHCP_PKTS+4
#define DHCPACK                 DHCP_PKTS+5
#define DHCPNACK                DHCP_PKTS+6
#define DHCPRELEASE             DHCP_PKTS+7
//----------------------------------------------
#define FAIL                    0
#define SUCCESS                 1
//----------------------------------------------
#define DHCP_STATE_INIT         10
#define DHCP_STATE_SELECT       11
#define DHCP_STATE_REQUEST      12
#define DHCP_STATE_BOUND        13
#define DHCP_STATE_RENEW        14
#define DHCP_STATE_REBIND       15
//--------------------------------------------
#define IN_COUNTER      0
#define IN_BAD_COUNTER  1
#define OUT_COUNTER     2
//--------------------------------------------
#define GREEN           0xff00
#define RED             0xff
#define BLUE            0xff0000
#define BLACK           0
#define SILVER          0xc0c0c0
//----------------------------------------------
}