OCT 1.增加查询地址池接口
This commit is contained in:
parent
8dbab1019e
commit
1503915535
|
@ -563,8 +563,6 @@ static int query_dhcpd_rangeset(data19 *req){
|
||||||
opPointer++;
|
opPointer++;
|
||||||
|
|
||||||
memcpy(op.value, opPointer, op.size);
|
memcpy(op.value, opPointer, op.size);
|
||||||
printf("***op->addr=%X***\n", cfig.dhcpRanges[rangeInd].options);
|
|
||||||
printf("op.opt_code=%d\n", op.opt_code);
|
|
||||||
if(op.opt_code == DHCP_OPTION_DNS){
|
if(op.opt_code == DHCP_OPTION_DNS){
|
||||||
dnsSize = op.size;
|
dnsSize = op.size;
|
||||||
do {
|
do {
|
||||||
|
@ -587,7 +585,6 @@ static int query_dhcpd_rangeset(data19 *req){
|
||||||
|
|
||||||
cJSON_AddStringToObject(pRangeItem, "gateway", gateway);
|
cJSON_AddStringToObject(pRangeItem, "gateway", gateway);
|
||||||
}else if(op.opt_code == DHCP_OPTION_IPADDRLEASE){
|
}else if(op.opt_code == DHCP_OPTION_IPADDRLEASE){
|
||||||
printf("***flag!!!***\n");
|
|
||||||
lease = fUInt(op.value);
|
lease = fUInt(op.value);
|
||||||
|
|
||||||
cJSON_AddNumberToObject(pRangeItem, "lease", lease);
|
cJSON_AddNumberToObject(pRangeItem, "lease", lease);
|
||||||
|
|
Loading…
Reference in New Issue