Skip to content

First cut at pcap dumping functionality

eta requested to merge eta/pcaps into main
  • This MR adds a (commented-out by default) facility to dump all packets observed through the onionmasq tunnel to a pcap file inside the Android external storage data directory for the app.
  • It's kind of crappy:
    • you need to enable pcap debugging before enabling the proxy, and you can't dynamically configure this at runtime yet
    • the pcapwriter is inserted even when you're not using it to simplify the types, meaning that there's probably some small overhead added
    • probably other stuff
  • Nevertheless, it's probably nice to have here for debugging issues like #29 (closed).

cc @cyberta for java-side review? perhaps it'd be possible to flesh this out into something the user could enable via the Java UI (?), but my Android skills aren't quite good enough for that yet :o

Merge request reports

Loading