Lines Matching defs:nettype
68 #include <rpc/nettype.h>
79 int nettype;
211 * Returns the type of the network as defined in <rpc/nettype.h>
212 * If nettype is NULL, it defaults to NETPATH.
215 getnettype(nettype)
216 const char *nettype;
220 if ((nettype == NULL) || (nettype[0] == 0)) {
225 nettype = strlocase(nettype);
228 if (strcasecmp(nettype, _rpctypelist[i].name) == 0) {
235 * For the given nettype (tcp or udp only), return the first structure found.
253 __rpc_getconfip(nettype)
254 const char *nettype;
276 _DIAGASSERT(nettype != NULL);
320 if (strcmp(nettype, "udp") == 0)
322 else if (strcmp(nettype, "tcp") == 0)
335 * Returns the type of the nettype, which should then be used with
339 __rpc_setconf(nettype)
340 const char *nettype;
344 /* nettype may be NULL; getnettype() supports that */
350 switch (handle->nettype = getnettype(nettype)) {
406 switch (handle->nettype) {