• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/

Lines Matching defs:options

62             afp_options_free(&p->obj.options, p->defoptions);
95 static char * srvloc_encode(const struct afp_options *options, const char *name)
106 if ((size_t)-1 ==(convert_string_allocate( options->unixcharset, options->maccharset,
134 if (nbp_name(options->server, &Obj, &Type, &Zone )) {
135 LOG(log_error, logtype_afpd, "srvloc_encode: can't parse %s", options->server );
191 &config->obj.options.ddpaddr);
202 config->obj.options.tickleval))) {
225 config->obj.options.tickleval))) {
244 static AFPConfig *ASPConfigInit(const struct afp_options *options,
256 if ((atp = atp_open(ATADDR_ANYPORT, &options->ddpaddr)) == NULL) {
270 Obj = (char *) options->hostname;
271 if (options->server && (size_t)-1 ==(convert_string_allocate( options->unixcharset, options->maccharset,
272 options->server, strlen(options->server), &convname)) ) {
273 if ((convname = strdup(options->server)) == NULL ) {
280 LOG(log_error, logtype_afpd, "main: can't parse %s", options->server );
303 nbp_unrgstr(Obj, Type, Zone, &options->ddpaddr);
322 memcpy(&config->obj.options, options, sizeof(struct afp_options));
339 static AFPConfig *DSIConfigInit(const struct afp_options *options,
353 options->hostname,
354 options->ipaddr ? options->ipaddr : "default",
355 options->port ? options->port : "548");
357 if ((dsi = dsi_init(protocol, "afpd", options->hostname,
358 options->ipaddr, options->port,
359 options->flags & OPTION_PROXY,
360 options->server_quantum)) == NULL) {
365 dsi->dsireadbuf = options->dsireadbuf;
367 if (options->flags & OPTION_PROXY) {
377 if (!(options->flags & OPTION_NOSLP)) {
401 if (options->fqdn) {
402 hostname = options->fqdn;
408 srvloc_hostname = srvloc_encode(options, (options->server ? options->server : options->hostname));
456 memcpy(&config->obj.options, options, sizeof(struct afp_options));
459 p = config->obj.options.server;
473 static AFPConfig *AFPConfigInit(struct afp_options *options,
487 if ((options->transports & AFPTRANS_DDP) &&
488 (config = ASPConfigInit(options, refcount)))
494 set_signature(options);
501 * if (options->transports & (1 << i) &&
502 * (next = DSIConfigInit(options, refcount, i)))
505 if ((options->transports & AFPTRANS_TCP) &&
506 (((options->flags & OPTION_PROXY) == 0) ||
507 ((options->flags & OPTION_PROXY) && config))
508 && (next = DSIConfigInit(options, refcount, DSI_TCPIP)))
516 auth_load(options->uampath, options->uamlist);
520 status_init(config, next, options);
537 struct afp_options options;
569 memcpy(&options, cmdline, sizeof(options));
570 if (!afp_options_parseline(p, &options))
575 if ((first = AFPConfigInit(&options, cmdline)))
577 } else if ((config->next = AFPConfigInit(&options, cmdline))) {
594 if (! (first->obj.options.flags & OPTION_NOZEROCONF)) {