EliasKotlyar / Xiaomi-Dafang-Hacks

4.16k stars 1k forks source link

dafang not responding to some? arp requests #1847

Open discordianfish opened 1 year ago

discordianfish commented 1 year ago

Description

Can't reach/ping dafang from my laptop when connected to wifi. I can connect to it from my phone (via wifi) and from other systems in my lan. In general the arp resolution seems flaky, even when connected via ethernet.

What did you do to debug the issue

Running tcpdump on my laptop shows arp requests being sent but not answered. I can't find a tcpdump binary that works on dafang, so can't completely rule out them getting 'lost' somehow but it seems unlikely. If someone can provide my a tcpdump binary for dafang I can check that.

As soon as I ping my laptop from dafang, the arp response come in and connections work.

Evidence

$ sudo tcpdump -n arp
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on enp175s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
13:04:49.966868 ARP, Request who-has 192.168.1.176 tell 192.168.1.246, length 46
13:04:51.002163 ARP, Request who-has 192.168.1.176 tell 192.168.1.246, length 46
13:04:52.049681 ARP, Request who-has 192.168.1.176 tell 192.168.1.246, length 46
13:04:53.038803 ARP, Request who-has 192.168.1.176 tell 192.168.1.246, length 46
13:04:55.113911 ARP, Request who-has 192.168.1.176 tell 192.168.1.246, length 46
$ arp -n|grep 192.168.1.176
192.168.1.176                    (incomplete)                              wlp174s0

Might be an explaination for #1845 as well