X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=udp_recv.c;h=7bbd4b0c575a351055170bab1df3f186769c6783;hp=759caa3d5646bf15d0b71cec0bb6932149a7c3c3;hb=aef566e9c8680629bac1ea84893b8b3ccd13da77;hpb=625c5cd993d07a63061a0788f174e12fa1c221e0;ds=sidebyside diff --git a/udp_recv.c b/udp_recv.c index 759caa3d..7bbd4b0c 100644 --- a/udp_recv.c +++ b/udp_recv.c @@ -5,7 +5,9 @@ */ /** \file udp_recv.c Paraslash's udp receiver */ +#include #include +#include #include #include "para.h" @@ -82,6 +84,9 @@ static void udp_recv_post_select(__a_unused struct sched *s, struct task *t) if (!ret) return; packet_size = ret; + if (packet_size >= FEC_EOF_PACKET_LEN) + if (!memcmp(tmpbuf, FEC_EOF_PACKET, FEC_EOF_PACKET_LEN)) + return; t->error = add_rn_output(rn, tmpbuf, packet_size); if (t->error < 0) return;