hi, i am not 100% sure if i do understand your question;
if its regarding printing a hexdump of an arbitrary (including ICMP) then you may want to try tcpdump with the -X flag; see the tcpdump man page for details; /hannes On Sat, Jan 01, 2005 at 05:30:03AM -0800, linux lover wrote: | Hi all, | I want to know which program and which statement | in that prints HEX dump of ICMP packet. I want to | write my own sniffer but not getting how to print | packets content and in which format to look like | 4500 003a feac 4000 4006 b7fe c0a8 01c1 | c0a8 0101 0403 05dc 1d83 3d44 1bd2 e615 | 8018 16d0 fe41 0000 0101 080a 0000 c3e9 | 0000 894f 5061 7261 6700 | I am doing this on linux as a kernel sniffer module. | Any other help is appreciated. | Thanks in advance. | regards, | linux_lover - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.