mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-24 07:16:43 +00:00
Please explains should be sent in packets with a full sid
This commit is contained in:
parent
5798e5acb5
commit
ed8be33f82
@ -394,9 +394,14 @@ static int add_explain_response(struct subscriber *subscriber, void *context){
|
||||
}
|
||||
|
||||
// if one of our identities is unknown,
|
||||
// the header of our next payload must include our full sid.
|
||||
if (subscriber->reachable==REACHABLE_SELF)
|
||||
// the header of this packet must include our full sid.
|
||||
if (subscriber->reachable==REACHABLE_SELF){
|
||||
subscriber->send_full=1;
|
||||
if (subscriber==my_subscriber){
|
||||
response->please_explain->source_full=1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// add the whole subscriber id to the payload, stop if we run out of space
|
||||
DEBUGF("Adding full sid by way of explanation %s", alloca_tohex_sid(subscriber->sid));
|
||||
|
Loading…
Reference in New Issue
Block a user