projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Recognize the eof packet also in the udp receiver.
[paraslash.git]
/
udp_recv.c
diff --git
a/udp_recv.c
b/udp_recv.c
index
759caa3
..
edbd7c3
100644
(file)
--- a/
udp_recv.c
+++ b/
udp_recv.c
@@
-82,6
+82,9
@@
static void udp_recv_post_select(__a_unused struct sched *s, struct task *t)
if (!ret)
return;
packet_size = ret;
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;
t->error = add_rn_output(rn, tmpbuf, packet_size);
if (t->error < 0)
return;