mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
Added warning to mdp ping to indicate that broadcast pings are
not encrypted.
This commit is contained in:
parent
8b49a2f572
commit
5f01210353
@ -435,7 +435,8 @@ int app_mdp_ping(int argc,char **argv,struct command_line_option *o)
|
||||
while(1) {
|
||||
/* Now send the ping packets */
|
||||
mdp.packetTypeAndFlags=MDP_TX;
|
||||
if (broadcast) mdp.packetTypeAndFlags|=MDP_NOCRYPT|MDP_NOSIGN;
|
||||
if (broadcast) { mdp.packetTypeAndFlags|=MDP_NOCRYPT|MDP_NOSIGN;
|
||||
fprintf(stderr,"WARNING: broadcast ping packets will not be encryped.\n"); }
|
||||
mdp.out.src.port=port;
|
||||
bcopy(srcsid,mdp.out.src.sid,SID_SIZE);
|
||||
/* Set destination to broadcast */
|
||||
|
Loading…
Reference in New Issue
Block a user