title: how to print flags in TCP header of raw packets using libpcap
body: <p><a href="http://www.tcpdump.org/sniffex.c" rel="nofollow noreferrer">sniffex.c</a>  is a program that is based on libpcap , to sniff and display some packet information. How do i modify it so as to print the values of TCP flags - urg , ack , psh , rst , syn and fin ? please help..</p>