wrote test for IPacket: TCP and UDP
bug fixes; error handling