What is this doing in your rel header?static const Uint32 PACKET_SIZE=6;If you are doing something like send_rel(unsigned char *buf, int len)
{
unsigned char *pkt = malloc(sizeof(struct relheader) + len);
/* fill out header */
...
memcpy(pkt + sizeof(struct relheader), buf, len);
/* push on rel buffer */
...
}I don't think it will work as the sizeof(struct relheader) is going to include PACKET_SIZE; and will get send too.