mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-23 15:02:27 +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) {
|
while(1) {
|
||||||
/* Now send the ping packets */
|
/* Now send the ping packets */
|
||||||
mdp.packetTypeAndFlags=MDP_TX;
|
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;
|
mdp.out.src.port=port;
|
||||||
bcopy(srcsid,mdp.out.src.sid,SID_SIZE);
|
bcopy(srcsid,mdp.out.src.sid,SID_SIZE);
|
||||||
/* Set destination to broadcast */
|
/* Set destination to broadcast */
|
||||||
|
Loading…
Reference in New Issue
Block a user