mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-21 01:42:18 +00:00
Fixed return code of packetOkOverlay().
This commit is contained in:
parent
d19e0b7e39
commit
abf626a5c5
@ -163,7 +163,7 @@ int packetOkOverlay(int interface,unsigned char *packet,int len,unsigned char *t
|
||||
ofs+=f.rfs;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int overlay_frame_resolve_addresses(int interface,overlay_frame *f)
|
||||
|
@ -68,10 +68,12 @@ int packetOk(int interface,unsigned char *packet,int len,unsigned char *transact
|
||||
if (packet[0]==0x4F&&packet[1]==0x10)
|
||||
{
|
||||
if (interface>-1)
|
||||
return packetOkOverlay(interface,packet,len,transaction_id,recvaddr,recvaddrlen,parseP);
|
||||
{
|
||||
return packetOkOverlay(interface,packet,len,transaction_id,recvaddr,recvaddrlen,parseP);
|
||||
}
|
||||
else
|
||||
/* We ignore overlay mesh packets in simple server mode, which is indicated by interface==-1 */
|
||||
return -1;
|
||||
return setReason("Ignoring overlay mesh packet");
|
||||
}
|
||||
|
||||
return setReason("Packet type not recognised.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user