Home | History | Annotate | Download | only in nc

Lines Matching defs:portlist

125 char *portlist[PORT_MAX+1];
667 /* Construct the portlist[] array. */
670 /* Cycle through portlist, connecting to each port. */
671 for (s = -1, i = 0; portlist[i] != NULL; i++) {
685 s = socks_connect(host, portlist[i], hints,
689 s = remote_connect(host, portlist[i], hints);
709 ntohs(atoi(portlist[i])),
715 "succeeded!\n", host, portlist[i],
1418 * Build an array of ports in portlist[], listing each port
1442 * Initialize portlist with a random permutation. Based on
1448 portlist[x] = portlist[cp];
1449 if (asprintf(&portlist[cp], "%d", x + lo) < 0)
1454 if (asprintf(&portlist[x], "%d", cp) < 0)
1464 portlist[0] = tmp;