Hi<br><br>I had a look at sniffex.c at <a href="http://www.tcpdump.org/pcap.htm">http://www.tcpdump.org/pcap.htm</a> and I found the TCP Header structure. That structure has the following <br><br><br> u_char th_flags;
<br> #define TH_FIN 0x01<br> #define TH_SYN 0x02<br> #define TH_RST 0x04<br> #define TH_PUSH 0x08<br> #define TH_ACK 0x10<br> #define TH_URG 0x20<br> #define TH_ECE 0x40
<br> #define TH_CWR 0x80<br> #define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_ACK|TH_URG|TH_ECE|TH_CWR)<br><br>I know that if I want to check any flag value in th_flags field I just have to "&" that with flag value but could anyone tell me how I could use TH_FLAGS and why is it there ?
<br><br>Thank you<br><br>