diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2010-03-11 19:28:03 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2010-03-11 19:28:03 +0000 |
commit | b60668193d0f1c84298f6c1d72249591ace1e20f (patch) | |
tree | a3b020f0b4e343b61f7704eaf1957a7e7f0a48ef /net/udpsend~.c | |
parent | 53a5d6620a541e47960e984a56753a2ae7134b92 (diff) |
Added a "TAG!" identifier field to the tag so it can be verified as a tag. This should help prevent crashes in case of dropped packets.
svn path=/trunk/externals/mrpeach/; revision=13204
Diffstat (limited to 'net/udpsend~.c')
-rw-r--r-- | net/udpsend~.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/udpsend~.c b/net/udpsend~.c index 6d6d0f1..aa556c7 100644 --- a/net/udpsend~.c +++ b/net/udpsend~.c @@ -348,6 +348,10 @@ static t_int *udpsend_tilde_perform(t_int *w) { bp = (char *)x->x_cbuf; /* fill in the header tag */ + x->x_tag.tag[0] = 'T'; + x->x_tag.tag[1] = 'A'; + x->x_tag.tag[2] = 'G'; + x->x_tag.tag[3] = '!'; x->x_tag.framesize = htonl(length); x->x_tag.count = htonl(x->x_count); /* send the format tag */ |