ping: implement -I option

This commit is contained in:
Denis Vlasenko
2006-09-02 16:17:30 +00:00
parent db7f2e5881
commit 2cbe6e6eb2
3 changed files with 52 additions and 12 deletions

View File

@@ -265,7 +265,6 @@ static void unpack(char *packet, int sz, struct sockaddr_in6 *from, int hoplimit
return;
icmppkt = (struct icmp6_hdr *) packet;
if (icmppkt->icmp6_id != myid)
return; /* not our ping */
@@ -423,7 +422,6 @@ int ping6_main(int argc, char **argv)
argc--;
argv++;
options = 0;
/* Parse any options */
while (argc >= 1 && **argv == '-') {
thisarg = *argv;