fixed! the problem came from using a copy of the xrtp_packet_t and then discarding it after the function returned. the solution was a pointer to it and remembering to take out the & of operator in the recvfrom and sendto functions since this would be a pointer to a pointer and thats not what we wanted.

I thought my compiler would have complained but it didn't. anyways thank yous mucho!