Wireshark-bugs: [Wireshark-bugs] [Bug 9710] allow tshark to read from pipe

Date: Sat, 15 Feb 2014 15:41:23 +0000

Comment # 5 on bug 9710 from
Hello,

(In reply to comment #3)
> Gerrit review: https://code.wireshark.org/review/#/c/85/

- fprintf(output, " -r <infile> set the filename to read from (no pipes or
stdin!)\n")
+ fprintf(output, " -r <infile> set the filename to read from (no stdin!)\n");

Why stdin is not supported? I think if pipes works than stdin also?

By the way I have some objection to indicate we have support for pipes, for
details please check Guy mails:
 - http://www.wireshark.org/lists/wireshark-dev/201312/msg00282.html
 - http://www.wireshark.org/lists/wireshark-dev/201312/msg00284.html
 - http://www.wireshark.org/lists/wireshark-dev/201312/msg00286.html

+     && (file->fast_seek) /* seek only when random access is supported */)

This abuse a little fast_seek flag [well this is not best variable name].

Still file->fast_seek is only set when -2 is passed to tshark, could you please
add new variable?

First we could assume file is always seekable and later if lseek() fails with
ESPIPE remove this flag and try skip-mode - it was started in attachment
#12277 [details].

Regards,
Kuba.


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