]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - udp_send.c
vss: Let the transport specify whether periodic headers are necessary.
[paraslash.git] / udp_send.c
index 0343feb633c8d34319c70320e0081c701d18d0fe..7d4f1c79939210cb2acf7d74108b3fe34bcac347 100644 (file)
@@ -14,6 +14,7 @@
 #include <netinet/udp.h>
 #include <net/if.h>
 #include <osl.h>
+#include <stdbool.h>
 
 #include "server.cmdline.h"
 #include "para.h"
@@ -344,6 +345,7 @@ static int udp_com_add(struct sender_command_data *scd)
        ut->fcp.data_slices_per_group = scd->data_slices_per_group;
        ut->fcp.init_fec              = udp_init_fec;
        ut->fcp.send_fec              = udp_send_fec;
+       ut->fcp.need_periodic_header  = true;
 
        sc->private_data = ut;
        sc->fd = -1;