secgateway/Product/modules/usercfgrcv/usercfg_kinit.h

37 lines
1023 B
C
Raw Normal View History

#ifndef USERCFGRCV_KINIT_H
#define USERCFGRCV_KINIT_H
//#include "../../../../../Platform/modules/netlink_api/libnetlink_k.h"
#include "../../../Platform/modules/netlink_api/libnetlink_k.h"
/*免认证规则结构体 */
typedef struct {
uint32_t sip;
uint32_t dip;
int dport;
char name[32];
}freeauth_configure_t;
/*init 失败为1 成功为0*/
extern int authfreeInit(freeauth_configure_t *kfreeauth);
extern int cfgnl_unicast(struct sk_buff *skb, u32 portid);
/*免认证规则配置的功能函数,解析出配置信息,存全局变量*/
extern int usercfg_freeauth(struct sk_buff *skb, struct nlmsghdr *nlh,
struct netlink_ext_ack *extack);
/*用户老化时间配置的功能函数,解析出配置信息,存全局变量 */
extern int usercfg_agingtime(struct sk_buff *skb, struct nlmsghdr *nlh,
struct netlink_ext_ack *extack);
extern int cfg_msgtype_register( int msgtype,commnl_doit_func doit,
commnl_dumpit_func dumpit,commnl_calcit_func calcit);
#endif