]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
Merge sf/master
[netatalk.git] / etc / afpd / afp_options.c
index 5cb205dbe7199eb2d6966533490d4538af8ee75e..22cb2d3389be6e008439be6a3649137e3c9167ff 100644 (file)
@@ -35,6 +35,7 @@
 #include <atalk/util.h>
 #include <atalk/compat.h>
 #include <atalk/globals.h>
+#include <atalk/fce_api.h>
 
 #include "status.h"
 #include "auth.h"
@@ -481,6 +482,19 @@ int afp_options_parseline(char *buf, struct afp_options *options)
     if ((c = getoption(buf, "-tcprcvbuf")))
         options->tcp_rcvbuf = atoi(c);
 
+       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_note, logtype_afpd, "Fce coalesce: %s", c);
+               fce_set_coalesce(c);
+       }
+       if ((c = getoption(buf, "-fceevents"))) {
+               LOG(log_note, logtype_afpd, "Fce events: %s", c);
+               fce_set_events(c);
+       }
+
     return 1;
 }