https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5516
--- Comment #12 from Guy Harris <guy@xxxxxxxxxxxx> 2011-12-29 12:56:37 PST ---
For changes to dumpcap, I would be inclined, instead, to have
open_capture_device() in dumpcap:
be a stub routine that just returns NULL with a "not built with
libpcap/WinPcap" error if HAVE_LIBPCAP is not defined;
otherwise, just return NULL with a "WinPcap isn't installed" error if
running on Windows and WinPcap wasn't loaded;
and build dumpcap regardless of whether we have pcap or not.
That would involve stubbing out a bunch of other pcap calls, though, so the
first step might be to have open_capture_device() return NULL with a "WinPcap
isn't installed" error if running on Windows and WinPcap isn't installed; that
should cause capture_loop_open_input() to try to open the supplied device as a
pipe.
That way, we should handle both "-" for capturing from the standard input *and*
capturing from named pipes.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.