/* rule matching structure */ struct ip_vs_cb_rule_field { char name[512]; char value[256]; }; typedef struct server { char *name; u_long addr; }server; typedef struct front_server{ u_long addr; u_short port; }front_server; typedef struct ip_sticky { u_long source_ip; u_long dest_ip; }ip_sticky; /* Request structure */ typedef struct Request { int content_length; char method[10]; char *url; char *content_type; char *header; char *body; }Request; /* connection structure */ typedef struct Connection { u_short port; struct front_server *cli_ser; Request *req; } Connection; /* ruleModule structure */ typedef struct Rule{ u_short port; u_long clientaddr; int content_length; char method[10]; char *url; char *content_type; char *body; }Rule;