Re: [tcpdump-workers] regarding offset IP packet

2006-07-26 Thread sandeep nitta
Hello all, i want to write a tool which takes SIP application data from a text file and appends that onto dummy tcp/udp ,ip and ehternet headers. In short, i want to hand make SIP packets. Can anyone tell me which sites would be useful, or can anyone give me a high level idea of how to do that ?

Re: [tcpdump-workers] regarding offset IP packet

2006-07-14 Thread Guy Harris
David Rosal wrote: ip_off is an u_short, so byte order issues apply. Try this: printf("%d|", ntohs(ippkt->ip_off)); ...and then remember that the upper 3 bits of that 16-bit field are flags: #define IP_RF 0x8000/* reserved fragment flag */ #define IP_DF 0x4000

Re: [tcpdump-workers] regarding offset IP packet

2006-07-14 Thread David Rosal
[EMAIL PROTECTED] wrote: Hi guys, I am trying to print offset value for IP packet through this code. printf("%d|",ippkt->ip_off); I am not getting the right value, what's missing. ip_off is an u_short, so byte order issues apply. Try this: printf("%d|", ntohs(ippkt->ip_off)); _

[tcpdump-workers] regarding offset IP packet

2006-07-13 Thread lalani
Hi guys, I am trying to print offset value for IP packet through this code. printf("%d|",ippkt->ip_off); I am not getting the right value, what's missing. I will greatly appreciate anyone's help. Keep on rocking, zubin T