Wireshark-bugs: [Wireshark-bugs] [Bug 2879] feature request: disable stdio buffering in text2pca

Date: Fri, 29 Aug 2014 20:29:45 +0000

Comment # 5 on bug 2879 from
My understanding from reading parts of info manual and the generated flex
scanner is that unless -B (batch), -I (interactive) or certain options
which are incompatible with interactive mode are given flex-generated
scanners perform buffered input using fread() instead of line-based input
if input is not from a TTY.

For use cases where a script dynamically creates input to text2pcap
via a pipe and the text2pcap output is piped e.g. to tshark -l
using -U for text2pcap ensures that this input buffering does not take
place (by calling yy_set_interactive(1)) in addition to using fflush() to
ensure that output buffering does not take place.


You are receiving this mail because:
  • You are the assignee for the bug.
  • You are watching all bug changes.