blob: 904f8371c80442b8b8caf4b34249468a3b757fd1 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001pingµÄID¹Ì¶¨Îª0x7777£¬ÄÚºËͨ¹ýËüʶ±ð¡£
2
3const struct option long_options[] =
4{
5
6{"ipv4", no_argument, NULL, '4'},
7//{"ipv6", no_argument, NULL, '6'},
8{"size", required_argument, NULL, 'l'}, // icmp data²¿·ÖµÄ³¤¶È, ĬÈÏ800
9{"pingcount", required_argument, NULL, 'c'}, // pingµÄ´ÎÊý£¬Ä¬ÈÏ100´Î
10{"itemcount", required_argument, NULL, 'n'}, // ¼Ç¼µÄʱ¼ä½Úµã¸öÊý£¬Èç¹û²»¹»´òÓ¡Òì³£ºóÍ˳ö£¬Ä¬ÈÏ20¸ö
11{"timeout", required_argument, NULL, 'w'}, // ÿ´ÎpingÍêµÈ´ýreplyµÄʱ¼ä£¬Ä¬ÈÏ4s
12{"interval", required_argument, NULL, 'i'}, // Á½´ÎpingµÄ¼ä¸ô£¬ÓÐreply 1s·¢ÏÂÒ»¸ö£¬Ã»reply 4sºó·¢ÏÂÒ»¸ö
13{"unstopped", no_argument, NULL, 't'}, // ÎÞÊýÂÖ100´Î£¬²»Í£µØÅÜ
14
15
16{0, 0, 0, 0}
17};