Lines Matching refs:port
94 size_t port, proto;
150 for (port = 0; port < PMASK + 1; port++) {
151 if (svc[port] == NULL)
156 if ((s = svc[port][proto]) == NULL)
158 add(db, s, port, getprotostr(sl, proto), &cnt, warndup);
161 free(svc[port]);
190 add(DB *db, StringList *sl, size_t port, const char *proto, size_t *cnt,
200 (void)printf("add %s %zu %s [ ", sl->sl_str[0], port, proto);
209 sl->sl_str[0], port, proto, mkaliases(sl, abuf, sizeof(abuf))) + 1;
212 /* key `\377port/proto', data = `indirect key' */
214 port, proto) + 1;
217 /* key `\377port', data = `indirect key' */
252 char *name, *port, *proto, *aliases, *cp, *alias;
267 if ((port = getstring(fname, line, &cp, "port")) == NULL)
279 proto = strchr(port, '/');
287 pnum = strtoul(port, &ep, 0);
288 if (*port == '\0' || *ep != '\0') {
289 warnx("%s, %zu: invalid port `%s'", fname, line, port);
293 warnx("%s, %zu: port too big `%s'", fname, line, port);