tcpdump mailing list archives
Re: regarding offset IP packet
From: David Rosal <david.rosal () upf edu>
Date: Fri, 14 Jul 2006 08:16:10 +0200
lalani () cs fsu edu 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)); __david - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
Current thread:
- regarding offset IP packet lalani (Jul 13)
- Re: regarding offset IP packet David Rosal (Jul 14)
- Re: regarding offset IP packet Guy Harris (Jul 14)
- Re: regarding offset IP packet sandeep nitta (Jul 26)
- Re: regarding offset IP packet Guy Harris (Jul 14)
- Re: regarding offset IP packet David Rosal (Jul 14)