Lines Matching defs:protostr
125 ndd_str2proto(const char *protostr)
127 if (strcmp(protostr, "tcp") == 0 ||
128 strcmp(protostr, "tcp6") == 0) {
130 } else if (strcmp(protostr, "udp") == 0 ||
131 strcmp(protostr, "udp6") == 0) {
133 } else if (strcmp(protostr, "ip") == 0 ||
134 strcmp(protostr, "ip6") == 0 ||
135 strcmp(protostr, "arp") == 0) {
137 } else if (strcmp(protostr, "icmp") == 0 ||
138 strcmp(protostr, "icmp6") == 0) {
140 } else if (strcmp(protostr, "sctp") == 0 ||
141 strcmp(protostr, "sctp6") == 0) {
182 char *pname, *rwtag, *protostr;
188 for (protostr = pname; !isspace(*protostr); protostr++)
190 *protostr++ = '\0';
191 /* protostr now points to protocol */
193 for (rwtag = protostr; !isspace(*rwtag); rwtag++)
198 proto = atoi(protostr);