// // Created by xajhuang on 2023/3/23. // #ifndef VCPE_USER_MGR_H #define VCPE_USER_MGR_H #include #include #include "ip_pool.h" #include "lease.h" #ifdef __cplusplus extern "C" { #endif typedef struct { unsigned int uid; PIPPOOL_INFO pPoolMgr; PMAC_FILTER pAllowTbl; PMAC_FILTER pDenyTbl; UT_hash_handle hh; } DHCP_USER_CFG, *PDHCP_USER_CFG; typedef struct { unsigned int uid; PDHCP_USER_CFG pCfg; } DHCP_USER_INFO, *PDHCP_USER_INFO; int user_add_ip_pool(U32 uId, PIPPOOL_INFO pPool); int dhcp_user_mgr_init(); PIPPOOL_INFO user_get_pool(U32 uId); #ifdef HTTPSERVER_ON int user_init_httpd(); #endif #ifdef __cplusplus } #endif #endif //VCPE_USER_MGR_H