Home | History | Annotate | Download | only in netcat

Lines Matching full:portlist

100 char *portlist[PORT_MAX+1];
442 /* Construct the portlist[] array. */
445 /* Cycle through portlist, connecting to each port. */
446 for (i = 0; portlist[i] != NULL; i++) {
452 s = socks_connect(host, portlist[i], hints,
457 s = remote_connect(host, portlist[i], hints);
477 ntohs(atoi(portlist[i])),
483 "succeeded!\n", host, portlist[i],
853 * Build an array or ports in portlist[], listing each port
895 portlist[x] = calloc(1, PORT_MAX_LEN);
896 if (portlist[x] == NULL)
898 snprintf(portlist[x], PORT_MAX_LEN, "%d", cp);
909 c = portlist[x];
910 portlist[x] = portlist[y];
911 portlist[y] = c;
922 portlist[0] = strdup(p);
923 if (portlist[0] == NULL)