Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-bugs: [Wireshark-bugs] [Bug 992] Stopping capture after specified time does not work properly

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: bugzilla-daemon@xxxxxxxxxxxxx
Date: Sun, 4 Feb 2007 17:41:17 +0000 (GMT)

http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=992





------- Comment #1 from thermal@xxxxx  2007-02-04 17:41 GMT -------
Similar problem exists when I start tshark with -a duration:10 listening on an
interface with no cable connected. It seems, that the timeout is checked each
time a packet is recieved which is not good if there are no packets on the
wire. Strace says that it waits forever for recvfrom:

write(2, "Capturing on eth0\n", 18Capturing on eth0
)     = 18
time(NULL)                              = 1170610326
recvfrom(4,               

I think recvfrom() should be called within a select() loop with a timeout
defined. You could then check if the timeout elapsed each 0.5 sec or so.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

  • Prev by Date: [Wireshark-bugs] [Bug 1340] text2pcap doesn't handle 'timeft' option under Windows
  • Next by Date: [Wireshark-bugs] [Bug 1345] New: V0.99.5 & Coloring Rules Not Acted On
  • Previous by thread: [Wireshark-bugs] [Bug 1328] H.248: wrong decoding of 3GUP pckg UP mode property
  • Next by thread: [Wireshark-bugs] [Bug 1345] New: V0.99.5 & Coloring Rules Not Acted On
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation