add logging of tcp and udp packets