Lines Matching refs:netid

162  * Static table of all netid/knetconfig network
165 * netid and vice versa.
1373 * netid.
1376 nlm_host_create(char *name, const char *netid,
1390 host->nh_netid = strdup(netid);
1610 nlm_host_find_locked(struct nlm_globals *g, const char *netid,
1618 key.nh_netid = (char *)netid;
1647 nlm_host_find(struct nlm_globals *g, const char *netid,
1656 hostp = nlm_host_find_locked(g, netid, addr, NULL);
1667 * The remote host is determined by all of: name, netid, address.
1668 * Note that the netid is whatever nlm_svc_add_ep() gave to
1674 const char *netid, struct netbuf *addr)
1687 host = nlm_host_find_locked(g, netid, addr, NULL);
1692 err = nlm_knc_from_netid(netid, &knc);
1699 newhost = nlm_host_create(name, netid, &knc, addr);
1705 host = nlm_host_find_locked(g, netid, addr, &where);
1712 * used to lookup by <netid, address> pair.
2329 nlm_svc_add_ep(struct file *fp, const char *netid, struct knetconfig *knc)
2334 error = svc_tli_kcreate(fp, 0, (char *)netid, NULL, &xprt,
2348 const char *netid, struct knetconfig *knc)
2397 error = nlm_svc_add_ep(fp, netid, knc);
2665 * By necessity, this "knows" the netid names invented
2671 char *netid;
2674 netid = svc_getnetid(transp);
2677 if (netid == NULL)
2680 if (strcmp(netid, "ticlts") == 0 ||
2681 strcmp(netid, "ticotsord") == 0)
2684 if (strcmp(netid, "tcp") == 0 || strcmp(netid, "udp") == 0) {
2689 if (strcmp(netid, "tcp6") == 0 || strcmp(netid, "udp6") == 0) {
2699 * Get netid string correspondig to the given knetconfig.
2708 const char *netid = NULL;
2717 netid = nc->n_netid;
2724 if (netid != NULL && rdev == NODEV) {
2731 return (netid);
2735 * Get a knetconfig corresponding to the given netid.
2736 * If there's no knetconfig for this netid, ENOENT
2740 nlm_knc_from_netid(const char *netid, struct knetconfig *knc)
2749 if (strcmp(netid, nknc->n_netid) == 0 &&