debugd: Add packet capture tool

Add a tool for performing interface-based or over-the-air capture.
This uses a helper shell script to select or create a monitoring
interface, and a small binary for generating a pcap file.

CQ-DEPEND=CL:50010
BUG=chromium:218380
TEST=Unit tests (for the shell script) and manual tests on a
daisy with a USB WiFi dongle.

Change-Id: I8bb7d5f2ac23eb249ed097e047a2672670445f39
Reviewed-on: https://gerrit.chromium.org/gerrit/50011
Reviewed-by: Elly Jones <ellyjones@chromium.org>
Commit-Queue: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
9 files changed
tree: 3e27fef06e60d99850e9a0ae9e86801572121721
  1. doc/
  2. share/
  3. src/
  4. .gitignore
  5. Makefile
  6. OWNERS
  7. README