-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You'll either have to write your own function (not that hard) or you can fork tcpdump and pass the packets to it via a pipe.
For a full list of what features/functions libpcap comes with do a 'man pcap'. Anything that isn't listed there you'll have to do yourself. - -Aaron On Wed, Apr 27, 2005 at 11:04:17AM -0000, soumya r wrote: > Hello, > I am doing a sniffer program using "libpcap" as part of my project. > How can I display the 'packet payload' in 'HEX' and 'ASCII' forms? > Please advice. - -- Aaron Turner <aturner at pobox.com|synfin.net> http://synfin.net/ They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin All emails are PGP signed; a lack of a signature indicates a forgery. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iD8DBQFCb8AXhweYF/hu2uYRAp1YAJ9YpgPnt7ZmxgGqVbo0ifCJ5Cn4TACgg4Uo WMeq3uguBUj9APPXBwFicZ8= =IYft -----END PGP SIGNATURE----- - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.