Lines Matching defs:proto
32 mygetprotobyname(const char *name, long *proto) {
38 *proto = pe->p_proto;
44 mygetservbyname(const char *name, const char *proto, long *port) {
48 se = getservbyname(name, proto);
68 long proto;
122 proto = strtol(DNS_AS_STR(token), &e, 10);
125 else if (!mygetprotobyname(DNS_AS_STR(token), &proto))
128 if (proto < 0 || proto > 0xff)
131 if (proto == IPPROTO_TCP)
133 else if (proto == IPPROTO_UDP)
136 CHECK(uint8_tobuffer(proto, target));
187 unsigned short proto;
201 proto = uint8_fromregion(&sr);
202 snprintf(buf, sizeof(buf), "%u", proto);