Lines Matching defs:proto
247 r->xr_ports.proto = type;
255 /* port/proto or port1-port2/proto */
259 char *proto = strchr(ports, '/');
261 if (proto == NULL)
264 *proto++ = '\0';
266 if (strcmp(proto, "tcp") == 0)
268 else if (strcmp(proto, "udp") == 0)
270 else if (strcmp(proto, "sctp") == 0)
272 else if (strcmp(proto, "all") == 0 || strcmp(proto, "*") == 0)
277 return (proto);