Lines Matching +refs:val +refs:context
37 * 2. For each context, find all servers which serve that context
42 * is one config object associated with each context found in
44 * 5. Update the global config cache for each found context and its
60 * to the 'domain' parameter. 'domain' will be a naming context
87 #define CONTEXT_ATTR "naming-context"
122 * If the term is of the form '(tag=val)', *t_inout and *v_inout
123 * are set to the tag and val strings, respectively.
143 char *val = NULL;
154 /* type: 0 = start, 1 = '(tag=val)' type, 2 = 'tag' type */
174 /* start of attr of the form (tag=val[,val]) */
199 val = state;
200 state = strchr(val, ','); /* is this attr multivalued? */
217 val = NULL;
225 *v_inout = val;
238 char *tag, *val, *state;
252 while (next_attr(&tag, &val, &state, &type)) {
265 if (val) {
266 if ((err = SLPUnescape(val, &unesc_val, SLP_FALSE))
271 "could not unescape attr val %s:%s\n",
272 val, slp_strerror(err));
357 static void update_config(const char *context, struct config_cookie *cookie) {
364 /* Unescape the naming context string */
365 if ((err = SLPUnescape(context, &unesc_domain, SLP_FALSE)) != SLP_OK) {
369 context, slp_strerror(err));
388 (void) logit("discovery: found naming context %s\n", context);
391 /* (re)construct the search filter form the input context */
393 strlen(context) +
399 (void) sprintf(search, "(%s=%s)", cookie->context_attr, context);
401 /* Find all servers which serve this context */
431 * The SLP callback routine for find_all_contexts(). For each context
437 char *attrs, *tag, *val, *state;
445 * Parse out each context. Attrs will be of the following form:
446 * (naming-context=dc\3deng\2c dc\3dsun\2c dc\3dcom)
456 while (next_attr(&tag, &val, &state, &type)) {
457 update_config(val, cookie);