disable mtu warn

This commit is contained in:
wangyu- 2017-10-19 01:24:45 -05:00
parent 4cba1d36de
commit c0ab4c1ee8
3 changed files with 8 additions and 5 deletions

View File

@ -574,10 +574,13 @@ int fec_decode_manager_t::input(char *s,int len)
} }
} }
//mylog(log_info,"mp.size()=%d index=%d\n",mp.size(),index);
if(fec_data[index].used!=0) if(fec_data[index].used!=0)
{ {
u32_t tmp_seq=fec_data[index].seq; u32_t tmp_seq=fec_data[index].seq;
anti_replay.set_invaild(tmp_seq); anti_replay.set_invaild(tmp_seq);
if(mp.find(tmp_seq)!=mp.end()) if(mp.find(tmp_seq)!=mp.end())
{ {
mp.erase(tmp_seq); mp.erase(tmp_seq);

View File

@ -167,19 +167,19 @@ class fec_decode_manager_t
{ {
anti_replay_t anti_replay; anti_replay_t anti_replay;
fec_data_t *fec_data; fec_data_t *fec_data;
int index;
unordered_map<u32_t, fec_group_t> mp; unordered_map<u32_t, fec_group_t> mp;
blob_decode_t blob_decode; blob_decode_t blob_decode;
int index;
int output_n; int output_n;
char ** output_s_arr; char ** output_s_arr;
int * output_len_arr; int * output_len_arr;
char *output_s_arr_buf[max_fec_packet_num+100];
int output_len_arr_buf[max_fec_packet_num+100];
int ready_for_output; int ready_for_output;
char *output_s_arr_buf[max_fec_packet_num+100];//only for type=1,for type=0 the buf inside blot_t is used
int output_len_arr_buf[max_fec_packet_num+100];//same
public: public:
fec_decode_manager_t() fec_decode_manager_t()
{ {

View File

@ -26,7 +26,7 @@ typedef int i32_t;
int mtu_warn=1350; int mtu_warn=1350;
int disable_mtu_warn=0; int disable_mtu_warn=1;
int disable_fec=0; int disable_fec=0;
int debug_force_flush_fec=0; int debug_force_flush_fec=0;