pingµÄID¹Ì¶¨Îª0x7777£¬ÄÚºËͨ¹ýËüʶ±ð¡£ | |
const struct option long_options[] = | |
{ | |
{"ipv4", no_argument, NULL, '4'}, | |
//{"ipv6", no_argument, NULL, '6'}, | |
{"size", required_argument, NULL, 'l'}, // icmp data²¿·ÖµÄ³¤¶È, ĬÈÏ800 | |
{"pingcount", required_argument, NULL, 'c'}, // pingµÄ´ÎÊý£¬Ä¬ÈÏ100´Î | |
{"itemcount", required_argument, NULL, 'n'}, // ¼Ç¼µÄʱ¼ä½Úµã¸öÊý£¬Èç¹û²»¹»´òÓ¡Òì³£ºóÍ˳ö£¬Ä¬ÈÏ20¸ö | |
{"timeout", required_argument, NULL, 'w'}, // ÿ´ÎpingÍêµÈ´ýreplyµÄʱ¼ä£¬Ä¬ÈÏ4s | |
{"interval", required_argument, NULL, 'i'}, // Á½´ÎpingµÄ¼ä¸ô£¬ÓÐreply 1s·¢ÏÂÒ»¸ö£¬Ã»reply 4sºó·¢ÏÂÒ»¸ö | |
{"unstopped", no_argument, NULL, 't'}, // ÎÞÊýÂÖ100´Î£¬²»Í£µØÅÜ | |
{0, 0, 0, 0} | |
}; |