X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=3b238014b526d311e4cb6871ea2aecf5cabe8e5b;hp=ed140c8487ee7fb806d247f7d874855e804efcff;hb=34d059caa24a68c2e420050ce3a67d32ce3fbdea;hpb=28f8405e062fcff1f0ce90eb01ffeaca299cffa7 diff --git a/send_common.c b/send_common.c index ed140c84..3b238014 100644 --- a/send_common.c +++ b/send_common.c @@ -417,6 +417,7 @@ static int parse_fec_parms(const char *arg, struct sender_command_data *scd) ret = -ERRNO_TO_PARA_ERROR(EINVAL); if (val < 0 || val > 65535) goto out; + scd->max_slice_bytes = val; /* parse data_slices_per_group */ b = e + 1; e = strchr(b, ':'); @@ -479,6 +480,7 @@ int parse_fec_url(const char *arg, struct sender_command_data *scd) goto out; } /* use default fec parameters. */ + scd->max_slice_bytes = 0; scd->slices_per_group = 16; scd->data_slices_per_group = 14; ret = 0;