tcpdump mailing list archives
Re: tcpdump in c programm
From: Michael Richardson <mcr () sandelman ottawa on ca>
Date: Sun, 18 Nov 2007 19:04:02 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
"s4022129" == s4022129 <s4022129 () mail inf tu-dresden de> writes:
s4022129> I am writing to ask wheter it is possible to use tcpdump s4022129> at c programming language? I know that such possibility s4022129> exist for libpcap. If yes what should I do in order to use s4022129> tcpdump at c programm. You can use any program that has stdio in another program with popen(2). Please see http://cm.bell-labs.com/cm/cs/upe/ In the 4.0 tcpdump, there will be a library, "libdissect" which you can link directly. It will take a pcap source, and will produce output to a fprintf-like function (which could be a string append function for another program). This is a work in-progress. - -- ] Bear: "Me, I'm just the shape of a bear." | firewalls [ ] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[ ] mcr () xelerance com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[ ] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Finger me for keys iQEVAwUBR0DS6ICLcPvd0N1lAQIyaggApS2MgwOZ8vxm2VwgEJPRjpkxvDaSLBC+ +7fNpnjPEFh7E7RrpgWw/imSssi8HPx8eEVescYBxc1Bt1ZhtumtzDeQ4ZBXGP8D Y7t4lm4wL3xUAKPcRsVwTVhbyW/GBVA4uIF688T5/W0GlC5WbR2YQd1XML4P4H7+ CNp5lyFq1tM9FU8FgaxynLKid+WXA2Irm48ZzWN8KC+wc4o+YQXCcBdN5GkunH6V k8Cs6aMbtnhRPZAP0cKUPSi0fdhc9w+Wl1025cq3weqfOO0vzL2kyrKmNNC9g4Jy q17Nb2Of1FffbYRbbsXIV+ojOicHvVAYMoMsN+a53GdSd4cK6KF9vg== =aA3U -----END PGP SIGNATURE----- - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- tcpdump in c programm s4022129 (Nov 18)
- Re: tcpdump in c programm Michael Richardson (Nov 18)
- tcpdump shared library option. Saikiran Madugula (Nov 20)
- Re: tcpdump shared library option. Guy Harris (Nov 20)