diff options
| author | luwenpeng <[email protected]> | 2023-04-28 17:45:13 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2023-04-28 17:45:13 +0800 |
| commit | e729c5cee9b2c16cb43c76e623bf108b9aa5fc6c (patch) | |
| tree | 5056c9207c9302ce39d4ff9f82b0f38fb5526a1c /plugin | |
| parent | 7b55524b4f9527ccea8c1b3db112210e29efbc94 (diff) | |
修改__cplusplus->__cpluscplus
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/business/doh/src/dns.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugin/business/doh/src/dns.h b/plugin/business/doh/src/dns.h index f56c682..33e2e7b 100644 --- a/plugin/business/doh/src/dns.h +++ b/plugin/business/doh/src/dns.h @@ -139,7 +139,7 @@ #define DNS_CLASS_HS 4 #define DNS_QCLASS_ANY 255 -// �洢 DNS ͷ����Ϣ�Ľṹ�� +// �洢 DNS ͷ����Ϣ�Ľṹ�� typedef struct _dns_hdr { u_int16_t id; @@ -296,7 +296,7 @@ typedef struct _nsec3param u_char *salt_value; } nsec3param_t; -// �洢 DNS ��Դ��¼����(�ش����� / ��Ȩ���� / ��������)�Ľṹ�� +// �洢 DNS ��Դ��¼����(�ش����� / ��Ȩ���� / ��������)�Ľṹ�� typedef struct _dns_rr { u_char name[DNS_MAX_NAME + 1]; @@ -345,7 +345,7 @@ typedef struct _fake_packet_opt u_char res_info[DNS_MAX_NAME + 1]; } cheat_pkt_opt_t; -// �洢 DNS Queries ����Ľṹ�� +// �洢 DNS Queries ����Ľṹ�� typedef struct { u_int16_t qtype; @@ -355,22 +355,22 @@ typedef struct #define MAX_RR_NUM 256 -// �洢���� DNS ��Ϣ�Ľṹ�� +// �洢���� DNS ��Ϣ�Ľṹ�� typedef struct _dns_info { - // �洢 DNS ͷ����Ϣ�Ľṹ�� + // �洢 DNS ͷ����Ϣ�Ľṹ�� dns_hdr_t hdr_info; - // RR ��¼�ĸ��� + // RR ��¼�ĸ��� int rr_count; - // �洢 DNS ��Դ��¼����(�ش����� / ��Ȩ���� / ��������)�Ľṹ�� + // �洢 DNS ��Դ��¼����(�ش����� / ��Ȩ���� / ��������)�Ľṹ�� dns_rr_t rr[MAX_RR_NUM]; - // �洢 DNS Queries ����Ľṹ�� + // �洢 DNS Queries ����Ľṹ�� dns_query_question_t query_question; } dns_info_t; -#ifdef __cplusplus +#ifdef __cpluscplus extern "C" { #endif @@ -382,7 +382,7 @@ int dns_parser(dns_info_t *dns_info, char *in_buff, int buff_len); int dns_package(dns_info_t *dns_info, char *out_buff, int buff_size); int dns_cheat_response(dns_info_t *dns_info, cheat_pkt_opt_t *cheat_opt, int cheat_opt_num, char *out_buff, int buff_size); -#ifdef __cplusplus +#ifdef __cpluscplus } #endif #endif |
