Lines Matching defs:ports
42 /* A string describing on what ports to listen */
62 static struct port_desc *ports;
83 if(ports[i].type == type
84 && ports[i].port == port
85 && ports[i].family == family)
88 ports = realloc(ports, (num_ports + 1) * sizeof(*ports));
89 if (ports == NULL)
91 ports[num_ports].family = family;
92 ports[num_ports].type = type;
93 ports[num_ports].port = port;
137 * add the standard collection of ports for `family'
159 * parse the set of space-delimited ports in `str' and add them.
338 ports[i].family, ports[i].type, ports[i].port);
348 ntohs(ports[i].port),
349 (ports[i].type == SOCK_STREAM) ? "tcp" : "udp");