Added warning to mdp ping to indicate that broadcast pings are

not encrypted.
This commit is contained in:
gardners 2012-04-15 00:26:26 +09:30
parent 8b49a2f572
commit 5f01210353

View File

@ -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 */