lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | pingµÄID¹Ì¶¨Îª0x7777£¬ÄÚºËͨ¹ýËüʶ±ð¡£
|
| 2 |
|
| 3 | const 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 | }; |