emanuele-f / PCAPdroid

No-root network monitor, firewall and PCAP dumper for Android
https://emanuele-f.github.io/PCAPdroid
GNU General Public License v3.0
2.43k stars 286 forks source link

Improve connections error reporting #441

Open emanuele-f opened 6 months ago

emanuele-f commented 6 months ago

When an error occurs for a connection (e.g. abnormal close), currently PCAPdroid only reports a generic "error". This should be characterized in more detail, to give the user some more info about the error.

For example, using the security.cloudflare-dns.com safe DNS, results in frequent errors. Internally, zdtun logs a TCP send error[32]: Broken pipe. Investigating this in root mode reveals that the server closes the connection with a TCP RST after the client sends the TCP FIN.

2024-05-19_18-53 2024-05-19_18-54