Lines Matching refs:nettype
63 #include <rpc/nettype.h>
71 int nettype;
199 * Returns the type of the network as defined in <rpc/nettype.h>
200 * If nettype is NULL, it defaults to NETPATH.
203 getnettype(const char *nettype)
207 if ((nettype == NULL) || (nettype[0] == 0)) {
212 nettype = strlocase(nettype);
215 if (strcasecmp(nettype, _rpctypelist[i].name) == 0) {
234 * For the given nettype (tcp or udp only), return the first structure found.
238 __rpc_getconfip(const char *nettype)
290 if (strcmp(nettype, "udp") == 0)
292 else if (strcmp(nettype, "tcp") == 0)
305 * Returns the type of the nettype, which should then be used with
309 __rpc_setconf(const char *nettype)
317 switch (handle->nettype = getnettype(nettype)) {
372 switch (handle->nettype) {