modified ucla_sos_packet_sink.cc