we implement the code that automatically print the packet information.