From b60668193d0f1c84298f6c1d72249591ace1e20f Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Thu, 11 Mar 2010 19:28:03 +0000 Subject: 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 --- net/udpsend~.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/udpsend~.c') 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 */ -- cgit v1.2.1