]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
Import FCE
[netatalk.git] / etc / afpd / afp_options.c
index ebc9a653e79e1ee890de1d051fd2cec6d7be4d73..ff807404b36df7955379934ff0738544446bf3da 100644 (file)
@@ -47,6 +47,7 @@ char *strchr (), *strrchr ();
 #include "globals.h"
 #include "status.h"
 #include "auth.h"
+#include "fce_api.h"
 
 #include <atalk/compat.h>
 
@@ -137,8 +138,6 @@ void afp_options_free(struct afp_options *opt,
         free(opt->passwdfile);
     if (opt->signatureopt && (opt->signatureopt != save->signatureopt))
        free(opt->signatureopt);
-    if (opt->signature && (opt->signature != save->signature))
-        free(opt->signature);
     if (opt->k5service && (opt->k5service != save->k5service))
        free(opt->k5service);
     if (opt->k5realm && (opt->k5realm != save->k5realm))
@@ -450,6 +449,16 @@ int afp_options_parseline(char *buf, struct afp_options *options)
     if ((c = getoption(buf, "-ntseparator")) && (opt = strdup(c)))
        options->ntseparator = opt;
 
+       if ((c = getoption(buf, "-fcelistener"))) {
+               LOG(log_note, logtype_afpd, "Adding fce listener \"%s\"", c);
+               fce_add_udp_socket(c);
+       }
+       if ((c = getoption(buf, "-fcecoalesce"))) {
+               LOG(log_ote, logtype_afpd, "Fce coalesce: %s", c);
+               fce_set_coalesce(c);
+       }
+
+
     return 1;
 }