Add missing conn argument from writePacket calls.