mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
Fixed overlay_mdp_dispatch() versus overlay_mdp_send() confusion
bug in MDP ping client.
This commit is contained in:
parent
6a50bbb024
commit
61920238d5
@ -444,7 +444,7 @@ int app_mdp_ping(int argc,char **argv,struct command_line_option *o)
|
||||
int *seq=(int *)&mdp.out.payload;
|
||||
*seq=sequence_number;
|
||||
|
||||
int res=overlay_mdp_dispatch(&mdp,0,0);
|
||||
int res=overlay_mdp_send(&mdp,0,0);
|
||||
if (res) {
|
||||
fprintf(stderr,"ERROR: Could not dispatch PING frame #%d (error %d)\n",
|
||||
sequence_number-firstSeq,res);
|
||||
@ -484,6 +484,7 @@ int app_mdp_ping(int argc,char **argv,struct command_line_option *o)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
sequence_number++;
|
||||
timeout=now+1000;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user