Lines Matching refs:nettype
63 #include <rpc/nettype.h>
80 int nettype;
489 * Returns the type of the network as defined in <rpc/nettype.h>
490 * If nettype is NULL, it defaults to NETPATH.
493 getnettype(const char *nettype)
497 if ((nettype == NULL) || (nettype[0] == 0)) {
502 nettype = strlocase(nettype);
505 if (strcasecmp(nettype, _rpctypelist[i].name) == 0) {
512 * For the given nettype (tcp or udp only), return the first structure found.
516 __rpc_getconfip(const char *nettype)
545 if (strcmp(nettype, "udp") == 0)
547 else if (strcmp(nettype, "tcp") == 0)
560 * Returns the type of the nettype, which should then be used with
568 __rpc_setconf(nettype)
569 const char *nettype;
575 switch (handle->nettype = getnettype(nettype)) {
633 switch (handle->nettype) {