]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
Merge 2-1
[netatalk.git] / etc / afpd / afp_options.c
index 7283d136fa1542bf63b1db29fa1e3a05fa1c70f0..f3724c13cdbd6d05f8403b6a753839e9c1f207c0 100644 (file)
@@ -188,6 +188,7 @@ void afp_options_init(struct afp_options *options)
     options->flags |= OPTION_UUID;
     options->tcp_sndbuf = 0;    /* 0 means don't change OS default */
     options->tcp_rcvbuf = 0;    /* 0 means don't change OS default */
+    options->dsireadbuf = 12;
 }
 
 /* parse an afpd.conf line. i'm doing it this way because it's
@@ -323,6 +324,12 @@ int afp_options_parseline(char *buf, struct afp_options *options)
         }
     }
 
+    if ((c = getoption(buf, "-dsireadbuf"))) {
+        options->dsireadbuf = atoi(c);
+        if (options->dsireadbuf < 6)
+            options->dsireadbuf = 6;
+    }
+
     if ((c = getoption(buf, "-server_quantum")))
         options->server_quantum = strtoul(c, NULL, 0);