//
// 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;

int user_add_ip_pool(U32 uId, PIPPOOL_INFO pPool);
int dhcp_user_mgr_init();
#ifdef HTTPSERVER_ON
int user_init_httpd();
#endif
#ifdef __cplusplus
}
#endif
#endif    //VCPE_USER_MGR_H