Skip to content

Commit

Permalink
disable mtu warn
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Oct 19, 2017
1 parent 4cba1d3 commit c0ab4c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions fec_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
u32_t tmp_seq=fec_data[index].seq;
anti_replay.set_invaild(tmp_seq);

if(mp.find(tmp_seq)!=mp.end())
{
mp.erase(tmp_seq);
Expand Down
8 changes: 4 additions & 4 deletions fec_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,19 @@ class fec_decode_manager_t
{
anti_replay_t anti_replay;
fec_data_t *fec_data;
int index;
unordered_map<u32_t, fec_group_t> mp;
blob_decode_t blob_decode;


int index;

int output_n;
char ** output_s_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;

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:
fec_decode_manager_t()
{
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ typedef int i32_t;

int mtu_warn=1350;

int disable_mtu_warn=0;
int disable_mtu_warn=1;
int disable_fec=0;

int debug_force_flush_fec=0;
Expand Down

0 comments on commit c0ab4c1

Please sign in to comment.