Modification of packet_sink and run an example