2019-08-08 06:53:53 +00:00
|
|
|
|
#ifndef K_MATCHRULR_H
|
|
|
|
|
#define K_MATCHRULR_H
|
|
|
|
|
|
2019-10-08 02:42:28 +00:00
|
|
|
|
#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;
|
|
|
|
|
|
2019-08-08 06:53:53 +00:00
|
|
|
|
|
|
|
|
|
int matcl_rule(const struct sk_buff *skb,u_int16_t l3num,
|
|
|
|
|
struct net *net,struct nf_conntrack_tuple *tuple);
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|