This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Im doing a live capture using pcap librery..

pcap_t pcap_open_live(const char device, int snaplen,int promisc, int to_ms, char *errbuf)

then i dump it into a file...

pcap_dumper_t pcap_dump_open(pcap_t p, const char *fname)

void pcap_dump(u_char user, struct pcap_pkthdr h,u_char *sp)

and then dissecting it using libwireshark..

now i want to put a tiimer based autostop condition on packet capturing and dumping.. coudnt find a way how to do it.. as pcap doesnt allow.

suggest me the ways pls!

asked 16 Feb '12, 23:11

Sanny_D's gravatar image

Sanny_D
0182021
accept rate: 50%

edited 16 Feb '12, 23:14

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×549
×238
×158
×5

question asked: 16 Feb '12, 23:11

question was seen: 2,997 times

last updated: 16 Feb '12, 23:14

p​o​w​e​r​e​d by O​S​Q​A