Lines Matching refs:proto
41 mygetprotobyname(const char *name, long *proto) {
47 *proto = pe->p_proto;
53 mygetservbyname(const char *name, const char *proto, long *port) {
57 se = getservbyname(name, proto);
71 long proto;
110 proto = strtol(DNS_AS_STR(token), &e, 10);
113 else if (!mygetprotobyname(DNS_AS_STR(token), &proto))
116 if (proto < 0 || proto > 0xff)
119 if (proto == IPPROTO_TCP)
121 else if (proto == IPPROTO_UDP)
124 RETERR(uint8_tobuffer(proto, target));
168 unsigned short proto;
182 proto = uint8_fromregion(&sr);
183 sprintf(buf, "%u", proto);