TSG-2489 DOH 支持 IP 归属地

* tfe maat IP 归属地回调表的注册从 pangu 移动到 tfe_resource 中
	* 修复 Pangu IP 归属地 SRC && DST 同时命中时 maat 计数的 bug
This commit is contained in:
luwenpeng
2020-07-15 11:30:11 +08:00
parent 39bff0023c
commit 444b9c7935
11 changed files with 518 additions and 264 deletions

View File

@@ -642,7 +642,7 @@ static int get_one_resource_record(char *msg, char **ptr, dns_rr_t *rr, char *en
memcpy(rr->rdata.unknown_data, *ptr, rr->rdlength);
rr->rdata.unknown_data[rr->rdlength] = '\0';
(*ptr) += rr->rdlength;
printf("No support respone type, type: %d", rr->type);
// printf("No support respone type, type: %d", rr->type);
break;
}
@@ -1196,7 +1196,7 @@ int dns_package(dns_info_t *dns_info, char *out_buff, int buff_size)
}
if (used_len > buff_size)
{
printf("dns_package buff to short, %s, %d\n", __FILE__, __LINE__);
// printf("dns_package buff to short, %s, %d\n", __FILE__, __LINE__);
return -1;
}
}