svc_type
err = reparse_add(nvl, svc_type, location);
delref(char *sl_path, char *svc_type)
err = reparse_remove(nvl, svc_type);
printf(gettext("Removed svc_type '%s' from %s\n"), svc_type, sl_path);
lookup(char *sl_path, char *svc_type, int type_set)
if (type_set && strcasecmp(type, svc_type) == 0)
char *command, *sl_path, *svc_type;
svc_type = "nfs-basic"; /* Default from SMF some day */
svc_type = optarg;
err = addref(sl_path, svc_type, optind, argc, argv);
err = delref(sl_path, svc_type);
err = lookup(sl_path, svc_type, type_set);
addref(char *sl_path, char *svc_type, int optind, int argc, char *argv[])
nfs_basic_deref(const char *svc_type, const char *svc_data, char *buf,
if ((!svc_type) || (!svc_data) || (!buf) || (!bufsz) || (*bufsz == 0))
if (strcasecmp(svc_type, SERVICE_TYPE))
nfs_basic_form(const char *svc_type, const char *svc_data, char *buf,
if ((!svc_type) || (!svc_data) || (!buf) || (*bufsz == 0))
if (strcmp(svc_type, SERVICE_TYPE))
nfs_basic_supports_svc(const char *svc_type)
if (!svc_type)
return (!strncasecmp(svc_type, SERVICE_TYPE, strlen(SERVICE_TYPE)));
char *svc_type, *svc_data;
if ((svc_type = strdup(argp)) == NULL) {
if ((cp = strchr(svc_type, ':')) == NULL) {
free(svc_type);
err = reparse_deref(svc_type, svc_data, buf, &bufsz);
svc_type, svc_data, bufsz, err);
free(svc_type);
if ((err = reparse_deref(svc_type, svc_data, resp->res_data,
free(svc_type);
free(svc_type);
type = svc_type(xprt);
switch (svc_type(xprt)) {
switch (svc_type(xprt)) {
if (svc_type(xprt) == SVC_DOOR)
if (svc_type(xprt) == SVC_DOOR)
if (svc_type(xprt) == SVC_CONNECTION &&
if (svc_type(xprt) == SVC_RENDEZVOUS)
if (svc_type(xprt) != SVC_CONNECTION) {
if (svc_type(trans) == SVC_DOOR)
if (svc_type(xprt) == SVC_DOOR)
if (svc_type(trans) == SVC_DOOR)
reparse_deref(const char *svc_type, const char *svc_data, char *buf,
if ((svc_type == NULL) || (svc_data == NULL) || (buf == NULL) ||
ops = rp_find_protocol(svc_type);
return (ops->rpo_deref(svc_type, svc_data, buf, bufsz));
reparse_add(nvlist_t *nvl, const char *svc_type, const char *svc_data)
if ((nvl == NULL) || (svc_type == NULL) || (svc_data == NULL))
ops = rp_find_protocol(svc_type);
err = ops->rpo_form(svc_type, svc_data, buf, &bufsz);
err = nvlist_add_string(nvl, svc_type, buf);
reparse_remove(nvlist_t *nvl, const char *svc_type)
if ((nvl == NULL) || (svc_type == NULL))
return (nvlist_remove_all(nvl, svc_type));
rp_find_protocol(const char *svc_type)
if (svc_type == NULL)
if (ops->rpo_supports_svc(svc_type))
if ((!svc_type) || (!svc_data) || (!buf) || (!bufsz))
if (strcasecmp(svc_type, DFS_REPARSE_SVCTYPE) != 0)
smb_rpo_form(const char *svc_type, const char *svc_data, char *buf,
if ((!svc_type) || (!svc_data) || (!buf) || (!bufsz))
smb_rpo_supports_svc(const char *svc_type)
if (svc_type == NULL)
if (strncasecmp(svc_type, DFS_REPARSE_SVCTYPE,
smb_rpo_deref(const char *svc_type, const char *svc_data, char *buf,
extern int reparse_kderef(const char *svc_type, const char *svc_data,
extern int reparse_add(nvlist_t *nvl, const char *svc_type,
extern int reparse_remove(nvlist_t *nvl, const char *svc_type);
extern int reparse_deref(const char *svc_type, const char *svc_data,
reparse_kderef(const char *svc_type, const char *svc_data, char *buf,
if (svc_type == NULL || svc_data == NULL || buf == NULL ||
dlen = strlen(svc_type) + strlen(svc_data) + 2;
(void) snprintf(darg, dlen, "%s:%s", svc_type, svc_data);
ib_service_type_t svc_type = IB_NONE;
svc_type = ioc.misc_arg;
msg, service, svc_type);
if (svc_type == IB_PORT_SERVICE) {
} else if (svc_type == IB_VPPA_SERVICE) {
} else if (svc_type == IB_HCASVC_SERVICE) {
svc_type = ioc.misc_arg;
msg, service, svc_type);
if (svc_type == IB_PORT_SERVICE) {
} else if (svc_type == IB_VPPA_SERVICE) {
} else if (svc_type == IB_HCASVC_SERVICE) {