Lines Matching refs:buf
11 int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags)
42 buf[0].port = 0;
43 buf[0].proto = proto;
44 buf[0].socktype = socktype;
55 buf[cnt].port = port;
56 buf[cnt].socktype = SOCK_STREAM;
57 buf[cnt++].proto = IPPROTO_TCP;
60 buf[cnt].port = port;
61 buf[cnt].socktype = SOCK_DGRAM;
62 buf[cnt++].proto = IPPROTO_UDP;
100 buf[cnt].port = port;
101 buf[cnt].socktype = SOCK_DGRAM;
102 buf[cnt++].proto = IPPROTO_UDP;
106 buf[cnt].port = port;
107 buf[cnt].socktype = SOCK_STREAM;
108 buf[cnt++].proto = IPPROTO_TCP;