Home
last modified time | relevance | path

Searched refs:gw_count (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c95 if (gw_count > 0) { in set_buffers()
97 optlen = 8 + gw_count * sizeof (struct in_addr); in set_buffers()
159 gwV4_count = (gw_count < MAX_GWS) ? gw_count : MAX_GWS - 1; in set_IPv4opt_sourcerouting()
214 if (gw_count > 0) { in send_probe()
216 optlen = 8 + gw_count * sizeof (struct in_addr); in send_probe()
H A Dtraceroute.c134 int gw_count = 0; /* number of gateways */ variable
343 if (gw_count >= MAXMAX_GWS) { in main()
348 gwlist[gw_count] = strdup(optarg); in main()
349 if (gwlist[gw_count] == NULL) { in main()
355 ++gw_count; in main()
700 if (gw_count > 0) { in resolve_nodes()
792 if (gw_count > 0) { in calc_packetlen()
809 optlen = 8 + gw_count * pr->addr_len; in calc_packetlen()
1126 if (check_v4 && gw_count >= MAX_GWS) { in get_gwaddrs()
1137 for (i = 0; i < gw_count; i++) { in get_gwaddrs()
[all …]
H A Dtraceroute_aux6.c87 if (gw_count > 0) { in set_buffers6()
90 gw_count * sizeof (struct in6_addr); in set_buffers6()
311 if (gw_count > 0) { in send_probe6()
314 gw_count * sizeof (struct in6_addr); in send_probe6()
H A Dtraceroute.h80 extern int gw_count; /* number of LSRR gateways */
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c101 set_IPv4_options(int sock, union any_in_addr *gw_IP_list, int gw_count, in set_IPv4_options() argument
112 if (rr_option || ts_option || gw_count > 0) { in set_IPv4_options()
116 if (gw_count > 0) { in set_IPv4_options()
118 req_size = 3 + (sizeof (struct in_addr)) * gw_count; in set_IPv4_options()
131 for (i = 0; i < gw_count; i++) { in set_IPv4_options()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dcommands.c2451 int gw_count; in parse_input() local
2454 gw_count = 0; in parse_input()
2507 hostname_list[gw_count] = strdup(hname); in parse_input()
2508 if (hostname_list[gw_count] == NULL) { in parse_input()
2513 if (++gw_count > MAXMAX_GATEWAY) { in parse_input()
2529 gw_count--; in parse_input()
2532 if (gw_count <= 0) in parse_input()
2535 return (gw_count); in parse_input()