Lines Matching defs:ports
50 static struct port_desc *ports;
72 if(ports[i].type == type
73 && ports[i].port == port
74 && ports[i].family == family)
77 ports = realloc(ports, (num_ports + 1) * sizeof(*ports));
78 if (ports == NULL)
80 ports[num_ports].family = family;
81 ports[num_ports].type = type;
82 ports[num_ports].port = port;
126 * add the standard collection of ports for `family'
148 * parse the set of space-delimited ports in `str' and add them.
330 ports[i].family, ports[i].type, ports[i].port);
340 ntohs(ports[i].port),
341 (ports[i].type == SOCK_STREAM) ? "tcp" : "udp");