Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7d76dda73 | ||
|
|
4d731800bf | ||
|
|
1b678406e7 | ||
|
|
479fd1a771 |
@@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required (VERSION 2.8)
|
cmake_minimum_required (VERSION 2.8...3.10)
|
||||||
|
|
||||||
set(lib_name quic)
|
set(lib_name quic)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
work_path=$1
|
work_path=$1
|
||||||
branch=`git status | grep branch | awk '{print $NF}'`
|
branch=`git status | grep 'On branch' | awk '{print $NF}'`
|
||||||
git log --branches=$branch --no-merges --date=local --show-signature --pretty="* %ad %an %ae %nhash: %H%ncommit:%n%B" | awk -F"-" '{print "- "$0}' | sed 's/- \*/\*/g' | sed 's/- $//g' | sed 's/-/ -/g' | sed 's/[0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}//g' > $work_path/changelog.txt
|
git log --branches=$branch --no-merges --date=local --show-signature --pretty="* %ad %an %ae %nhash: %H%ncommit:%n%B" | awk -F"-" '{print "- "$0}' | sed 's/- \*/\*/g' | sed 's/- $//g' | sed 's/-/ -/g' | sed 's/[0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}//g' > $work_path/changelog.txt
|
||||||
|
|||||||
@@ -177,8 +177,12 @@ extern "C" unsigned char QUIC_ENTRY(const struct streaminfo *pstream, void**pme,
|
|||||||
state=quic_analyze_entry(pstream, context, thread_seq, a_packet);
|
state=quic_analyze_entry(pstream, context, thread_seq, a_packet);
|
||||||
|
|
||||||
if(state&APP_STATE_DROPME || pstream->opstate==OP_STATE_CLOSE)
|
if(state&APP_STATE_DROPME || pstream->opstate==OP_STATE_CLOSE)
|
||||||
{
|
{
|
||||||
quic_call_business_plug(pstream, context, NULL, 0, QUIC_INTEREST_KEY_MASK, a_packet);
|
if(context->link_state==1)
|
||||||
|
{
|
||||||
|
quic_call_business_plug(pstream, context, NULL, 0, QUIC_INTEREST_KEY_MASK, a_packet);
|
||||||
|
}
|
||||||
|
|
||||||
quic_free_context(pstream, g_quic_param.context_bridge_id, *pme);
|
quic_free_context(pstream, g_quic_param.context_bridge_id, *pme);
|
||||||
stream_bridge_async_data_put(pstream, g_quic_param.context_bridge_id, NULL);
|
stream_bridge_async_data_put(pstream, g_quic_param.context_bridge_id, NULL);
|
||||||
*pme=NULL;
|
*pme=NULL;
|
||||||
@@ -321,6 +325,8 @@ extern "C" long long QUIC_FLAG_CHANGE(char* flag_str)
|
|||||||
|
|
||||||
extern "C" void QUIC_DESTROY(void)
|
extern "C" void QUIC_DESTROY(void)
|
||||||
{
|
{
|
||||||
|
MESA_destroy_runtime_log_handle(g_quic_param.logger);
|
||||||
|
g_quic_param.logger = NULL;
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -737,6 +737,11 @@ enum QUIC_VERSION is_quic_protocol(const char *payload, int payload_len, int *pa
|
|||||||
enum QUIC_VERSION quic_version=QUIC_VERSION_UNKNOWN;
|
enum QUIC_VERSION quic_version=QUIC_VERSION_UNKNOWN;
|
||||||
unsigned char frame_type=(unsigned char)(payload[0]);
|
unsigned char frame_type=(unsigned char)(payload[0]);
|
||||||
|
|
||||||
|
if(payload_len<=4)
|
||||||
|
{
|
||||||
|
return QUIC_VERSION_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
if(frame_type&QUIC_LONG_HEADER_MASK)
|
if(frame_type&QUIC_LONG_HEADER_MASK)
|
||||||
{
|
{
|
||||||
quic_version=identify_quic_version(payload, payload_len, payload_offset);
|
quic_version=identify_quic_version(payload, payload_len, payload_offset);
|
||||||
@@ -773,7 +778,11 @@ unsigned char parse_quic_all_version(struct quic_info *quic_info, const char *pa
|
|||||||
|
|
||||||
if(quic_version>=GQUIC_VERSION_Q001 && quic_version<=GQUIC_VERSION_Q048)
|
if(quic_version>=GQUIC_VERSION_Q001 && quic_version<=GQUIC_VERSION_Q048)
|
||||||
{
|
{
|
||||||
return parse_quic_uncryption_payload(quic_info, payload+payload_offset, payload_len-payload_offset, thread_seq);
|
if(payload_len > payload_offset)
|
||||||
|
{
|
||||||
|
return parse_quic_uncryption_payload(quic_info, payload+payload_offset, payload_len-payload_offset, thread_seq);
|
||||||
|
}
|
||||||
|
return PARSE_RESULT_VERSION;
|
||||||
}
|
}
|
||||||
else if(((quic_version>=MVFST_VERSION_00 && quic_version<=MVFST_VERSION_0F) ||
|
else if(((quic_version>=MVFST_VERSION_00 && quic_version<=MVFST_VERSION_0F) ||
|
||||||
(quic_version>=GQUIC_VERSION_Q049 && quic_version<=GQUIC_VERSION_Q059) ||
|
(quic_version>=GQUIC_VERSION_Q049 && quic_version<=GQUIC_VERSION_Q059) ||
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required (VERSION 2.8)
|
cmake_minimum_required (VERSION 2.8...3.10)
|
||||||
|
|
||||||
set(lib_name quic)
|
set(lib_name quic)
|
||||||
project(${lib_name}_test)
|
project(${lib_name}_test)
|
||||||
|
|||||||
BIN
test/pcap/quic_len_-2.pcapng
Normal file
BIN
test/pcap/quic_len_-2.pcapng
Normal file
Binary file not shown.
Reference in New Issue
Block a user