Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch makes
ubertooth-btle -f -c -
do what you would expect. Unfortunately it only works on Linux because it requires procfs;libbtbb
does not let us capture to a file descriptor, so we need to be able to pass it an actual path.Without this patch,
ubertooth-btle
could be forced to write to /dev/stdout, but it will interleave its status messages, corrupting the pcap.Another (perhaps better) solution would be to track down every call to
printf()
and whatever else writes to stdout, and make them all conditional, but I didn't know how much work that would be.This is mostly useful for using with the
sshdump
extcap tool, which lets us stream captures from another host over SSH. I'm using it successfully to capture from an Ubertooth attached to a Linux virtual machine while I use Wireshark natively in macOS. (I wrote it up for the wiki.) However, without being able to capture to stdout, it requires some contortions with temporary named pipes and such.