]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - send_common.c
udp: integrate new fec interaction
[paraslash.git] / send_common.c
index ed140c8487ee7fb806d247f7d874855e804efcff..3b238014b526d311e4cb6871ea2aecf5cabe8e5b 100644 (file)
@@ -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;