thank you . i have one more question. ip.frag_offset != 0(Display filter) Converted to Capture filter syntax is ip[7]&0xf != 0 ? i want to know right syntax. asked 04 Oct '13, 08:19 stih converted 04 Oct '13, 08:34 SYN-bit ♦♦ |
2 Answers:
(I converted the new question in your comment to a new question) You need to look at the IP RFC to find detailed information about the header structure of an IP packet:
As you can see, the IP fragement offset is formed by the least significant 5 bits of the 6th octet and the full 7th octet (when counting from 0) of the IP header. So you will to get those bytes with "ip[6:2]", then mask the right bits with "ip[6:2] & 0x1fff" and then compare to a value. In your case:
answered 04 Oct '13, 08:40 SYN-bit ♦♦ |
As I directed you before from your earlier question, read the pcap-filter man page and reference RFC 791 to understand the IP header fields better. answered 04 Oct '13, 08:41 cmaynard ♦♦ |