pure sdk for main
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#ifndef _HUGEIC_DHCPD_H_
|
||||
#define _HUGEIC_DHCPD_H_
|
||||
|
||||
struct dhcpd_param {
|
||||
uint32 lease_time; /*unit: seconds*/
|
||||
uint32 start_ip, end_ip; /*network byteorder*/
|
||||
uint32 netmask; /*network byteorder*/
|
||||
uint32 router; /*network byteorder*/
|
||||
uint32 dns1; /*network byteorder*/
|
||||
uint32 dns2; /*network byteorder*/
|
||||
};
|
||||
|
||||
struct dhcpd_leaseinfo {
|
||||
uint32 ip;
|
||||
uint8 mac[6];
|
||||
};
|
||||
|
||||
int32 dhcpd_get_lease_list(struct dhcpd_leaseinfo *leaseslist, int32 list_size);
|
||||
uint32 dhcpd_get_lease_ip(uint8 *mac);
|
||||
void dhcpd_ip_inactive(uint8 *mac);
|
||||
int32 dhcpd_start(char *ifname, struct dhcpd_param *param);
|
||||
void dhcpd_stop(char *ifname);
|
||||
void dhcpd_set_dns(uint32 dns1, uint32 dns2);
|
||||
void dhcpd_flush(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user