• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/blacklist/bin/

Lines Matching refs:local

93 getnum(const char *f, size_t l, bool local, void *rp, const char *name,
105 if (local)
123 (*lfun)(LOG_ERR, "%s: %s, %zu: `=' for %s not allowed in local config",
130 getnfail(const char *f, size_t l, bool local, struct conf *c, const char *p)
132 return getnum(f, l, local, &c->c_nfail, "nfail", p);
136 getsecs(const char *f, size_t l, bool local, struct conf *c, const char *p)
148 if (local)
189 (*lfun)(LOG_ERR, "%s: %s, %zu: `=' duration not allowed in local"
196 getport(const char *f, size_t l, bool local, void *r, const char *p)
210 return getnum(f, l, local, r, "service", p);
214 getmask(const char *f, size_t l, bool local, const char **p, int *mask)
229 return getnum(f, l, local, mask, "mask", d);
233 gethostport(const char *f, size_t l, bool local, struct conf *c, const char *p)
252 if (getmask(f, l, local, &pstr, &c->c_lmask) == -1)
277 if (!local)
303 if (getport(f, l, local, &c->c_port, pstr) == -1)
323 getproto(const char *f, size_t l, bool local __unused, struct conf *c,
334 return getnum(f, l, local, &c->c_proto, "protocol", p);
338 getfamily(const char *f, size_t l, bool local __unused, struct conf *c,
345 return getnum(f, l, local, &c->c_family, "family", p);
349 getuid(const char *f, size_t l, bool local __unused, struct conf *c,
359 return getnum(f, l, local, &c->c_uid, "user", p);
364 getname(const char *f, size_t l, bool local, struct conf *c,
367 if (getmask(f, l, local, &p, &c->c_rmask) == -1)
375 if (local)
384 (*lfun)(LOG_ERR, "%s: %s, %zu: `=' name not allowed in local"
390 getvalue(const char *f, size_t l, bool local, void *r, char **p,
396 return (*fun)(f, l, local, r, ep);
401 conf_parseline(const char *f, size_t l, char *p, struct conf *c, bool local)
409 e = getvalue(f, l, local, c, &p, gethostport);
411 e = getvalue(f, l, local, c, &p, getproto);
413 e = getvalue(f, l, local, c, &p, getfamily);
415 e = getvalue(f, l, local, c, &p, getuid);
417 e = getvalue(f, l, local, c, &p, getname);
419 e = getvalue(f, l, local, c, &p, getnfail);
421 e = getvalue(f, l, local, c, &p, getsecs);
843 * Apply the local config match to the result
1067 /* match the local config */
1108 if (strcmp(line, "[local]") == 0) {
1140 confset_list(&lconf, "local", "target");