mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-13 22:03:09 +00:00
add extra debug option to trace MDP Rhizome transfer problems.
This commit is contained in:
parent
53c9a406e1
commit
06bb93c88b
@ -259,6 +259,7 @@ ATOM(bool_t, rhizome_tx, 0, boolean,, "")
|
||||
ATOM(bool_t, rhizome_rx, 0, boolean,, "")
|
||||
ATOM(bool_t, rhizome_ads, 0, boolean,, "")
|
||||
ATOM(bool_t, rhizome_nohttptx, 0, boolean,, "")
|
||||
ATOM(bool_t, rhizome_mdp_rx, 0, boolean,, "")
|
||||
ATOM(bool_t, meshms, 0, boolean,, "")
|
||||
ATOM(bool_t, manifests, 0, boolean,, "")
|
||||
ATOM(bool_t, vomp, 0, boolean,, "")
|
||||
|
@ -127,6 +127,10 @@ int overlay_mdp_service_rhizomeresponse(overlay_mdp_frame *mdp)
|
||||
RETURN(WHYF("No payload?"));
|
||||
|
||||
int type=mdp->out.payload[0];
|
||||
|
||||
if (config.debug.rhizome_mdp_rx)
|
||||
DEBUGF("Received Rhizome over MDP block, type=%02x",type);
|
||||
|
||||
switch (type) {
|
||||
case 'B': /* data block */
|
||||
case 'T': /* terminal data block */
|
||||
@ -139,6 +143,10 @@ int overlay_mdp_service_rhizomeresponse(overlay_mdp_frame *mdp)
|
||||
int count=mdp->out.payload_length-(1+16+8+8);
|
||||
unsigned char *bytes=&mdp->out.payload[1+16+8+8];
|
||||
|
||||
if (config.debug.rhizome_mdp_rx)
|
||||
DEBUGF("bidprefix=%02x%02x%02x%02x*, offset=%lld, count=%d",
|
||||
bidprefix[0],bidprefix[1],bidprefix[2],bidprefix[3],offset,count);
|
||||
|
||||
/* Now see if there is a slot that matches. If so, then
|
||||
see if the bytes are in the window, and write them.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user