diff options
| author | 刘学利 <[email protected]> | 2020-09-15 09:29:26 +0800 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2020-09-15 09:29:26 +0800 |
| commit | 408a5f52ffbb689dca72965544eccd1f94d55407 (patch) | |
| tree | 6974e09650c1ee6e36aab2fc864c9ea3da367a6d /src/dns.cpp | |
| parent | d8317e984b8858e298bfc6ad7543406f115e7c1e (diff) | |
修正返回插件管理的返回值
修复安装和卸载时报错
Diffstat (limited to 'src/dns.cpp')
| -rw-r--r-- | src/dns.cpp | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 5cb4f38..f38b53c 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -68,6 +68,7 @@ g_dns_proto_info_t g_dns_proto_info; static dns_str_contrast_id_t DNS_FLAG_ID[] = { + {"ALL", DNS_ALL}, {"DNS_ALL", DNS_ALL}, {"DNS_REQ_ALL", DNS_REQ_ALL}, {"DNS_RES_ALL", DNS_RES_ALL}, @@ -1263,23 +1264,6 @@ int callback_dns_business_plug(struct streaminfo *a_stream, void **pme, void *in { app_state=APP_STATE_DROPPKT; } - - if(state&PROT_STATE_DROPME) - { - if(app_state&APP_STATE_DROPPKT) - { - app_state|=APP_STATE_DROPME; - } - else - { - app_state=APP_STATE_DROPME; - } - } - - if(state&PROT_STATE_GIVEME) - { - app_state=APP_STATE_GIVEME; - } return app_state; } @@ -1740,7 +1724,7 @@ int parse_dns_protocol(struct streaminfo *a_stream, unsigned char opstate, char } ret=callback_dns_business_plug(a_stream, pme, (void *)&dns_info, DNS_ALL, session_state, thread_seq, a_packet); - if(ret&APP_STATE_DROPME || ret&APP_STATE_DROPPKT) + if(ret&APP_STATE_DROPPKT) { return ret; } @@ -2030,7 +2014,7 @@ int DNS_INIT() *****************************************************************************/ void DNS_DESTROY() { - printf("Hello! This is dns.so PROT_DESTORY, but i am not complete!!!\n"); + return ; } |
