2023-03-29 09:02:21 +00:00
|
|
|
//
|
|
|
|
// Created by xajhuang on 2023/3/23.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef VCPE_USER_MGR_H
|
|
|
|
#define VCPE_USER_MGR_H
|
|
|
|
#include <uthash/uthash.h>
|
|
|
|
#include <common.h>
|
|
|
|
#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_INFO, *PDHCP_USER_INFO;
|
|
|
|
|
2023-04-07 07:56:38 +00:00
|
|
|
int user_add_ip_pool(U32 uId, PIPPOOL_INFO pPool);
|
|
|
|
int dhcp_user_mgr_init();
|
|
|
|
PIPPOOL_INFO user_get_pool(U32 uId);
|
2023-03-29 09:02:21 +00:00
|
|
|
#ifdef HTTPSERVER_ON
|
|
|
|
int user_init_httpd();
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif //VCPE_USER_MGR_H
|