secgateway/Product/modules/match_rule/k-matchrule.h

23 lines
645 B
C
Raw Normal View History

#ifndef K_MATCHRULR_H
#define K_MATCHRULR_H
#define UNAMESIZE (63)
/*配置消息 */
typedef struct {
int rule_priority; /*未认证权限优先级*/
char name[UNAMESIZE + 1]; /*未认证权限名称*/
uint32_t sip; /*未认证权限源IP地址*/
uint32_t dip; /*未认证权限目的IP地址*/
int dport; /*未认证权限目的端口号*/
int flag; /*状态标志位0表示状态启动1表示状态禁用*/
}freeauth_configure_t;
int matcl_rule(const struct sk_buff *skb,u_int16_t l3num,
struct net *net,struct nf_conntrack_tuple *tuple);
#endif