{ "first-ttl", 1, 0, 'f' }, /* -f & -m are borrowed from traceroute */
{ "max-ttl", 1, 0, 'm' },
{ "udp", 0, 0, 'u' }, /* UDP (default is ICMP) */
+ { "tcp", 0, 0, 'T' }, /* TCP (default is ICMP) */
+ { "port", 1, 0, 'P' }, /* target port number for TCP */
+ { "timeout", 1, 0, 'Z' }, /* timeout for TCP sockets */
{ "inet", 0, 0, '4' }, /* IPv4 only */
{ "inet6", 0, 0, '6' }, /* IPv6 only */
- { "aslookup", 0, 0, 'z' }, /* Do AS lookup */
+#ifndef NO_IPINFO
+ { "ipinfo", 1, 0, 'y' }, /* IP info lookup */
+ { "aslookup", 0, 0, 'z' }, /* Do AS lookup (--ipinfo 0) */
+#endif
{ 0, 0, 0, 0 }
};
while(1) {
/* added f:m:o: byMin */
opt = getopt_long(argc, argv,
- "vhrwxtglpo:B:i:c:s:Q:ena:f:m:uby:z46", long_options, NULL);
- "vhrwxtglpo:B:i:c:s:Q:ena:f:m:uTP:Zbz46", long_options, NULL);
++ "vhrwxtglpo:B:i:c:s:Q:ena:f:m:uTP:Zby:z46", long_options, NULL);
if(opt == -1)
break;
}
if (PrintHelp) {
- printf("usage: %s [-hvrwctglspniu46] [--help] [--version] [--report]\n"
+ printf("usage: %s [-hvrwctglspniuT46] [--help] [--version] [--report]\n"
"\t\t[--report-wide] [--report-cycles=COUNT] [--curses] [--gtk]\n"
"\t\t[--raw] [--split] [--mpls] [--no-dns] [--show-ips]\n"
- "\t\t[--address interface] [--aslookup]\n" /* BL */
+ "\t\t[--address interface]\n" /* BL */
+#ifndef NO_IPINFO
+ "\t\t[--ipinfo=item_no|-y item_no]\n"
+ "\t\t[--aslookup|-z]\n"
+#endif
"\t\t[--psize=bytes/-s bytes]\n" /* ok */
- "\t\t[--report-wide|-w] [-u]\n" /* rew */
+ "\t\t[--report-wide|-w] [-u|-T] [--port=PORT] [--timeout=SECONDS]\n" /* rew */
"\t\t[--interval=SECONDS] HOSTNAME [PACKETSIZE]\n", argv[0]);
exit(0);
}