Re: [tcpdump-workers] Payload not properly displaying...

2005-05-05 Thread Guy Harris
(Blah blah blah wrong From: address blah blah blah work around duplicate detection blah blah blah.) soumya r wrote: I am doing packet sniffing and i found the "sniffer.c" program of pcap web site extremely helpful. But i have got one problem. I am not able to display the packet payload properly.

Re: [tcpdump-workers] Payload not properly displaying...

2005-05-05 Thread alexander medvedev
Hi Soumya, aren't you printing the first two bytes of the payload in hex rather than the payload itself? printf("\tPayload:%x\n",(u_char *)(packet + size_ethernet + size_ip + size_tcp)); you probably want to look what tcpdump's -X flag does. -alexm 11:14 05/05/2005 On 5 May 2005, soumya r wro

[tcpdump-workers] Payload not properly displaying...

2005-05-04 Thread soumya r
Hello, I am doing packet sniffing and i found the "sniffer.c" program of pcap web site extremely helpful. But i have got one problem. I am not able to display the packet payload properly. ie, The payload displayed is same for all packets. I cannot figure out what the problem is. Also, of