kognise / arpchat

Answering the question nobody asked: what if you wanted to text your friends using only ARP?
Other
2.47k stars 50 forks source link

Duplicated messages on same host #7

Open mrkeuz opened 2 years ago

mrkeuz commented 2 years ago

Again! Really fun project! 🚀🚀🚀

If you run two instances on same host you receive duplicated messages (ONLY on receiver side)

image

Env

cargo +nightly build cargo 1.60.0-nightly (95bb3c92b 2022-01-18) Ubuntu 20.04.4 5.4.0-104-generic

kognise commented 2 years ago

I can't seem to reproduce this, but I fixed it by deduplicating messages by id in 8e22e48 which should wipe away this whole class of issues. Gonna make a new release in a couple minutes.

kognise commented 2 years ago

https://github.com/kognise/arpchat/releases/tag/v0.3.0

mrkeuz commented 2 years ago

Confirm! Worked as expected on latest https://github.com/kognise/arpchat/commit/5174dafd115dd5c2ad34bc57591f6fcf05f17b8c 🚀🚀🚀

mrkeuz commented 2 years ago

@kognise hi again, I understand that it's just fun project, and I'm NOT expected to fix, REALLY.

Just FYI, found several issues:

Notes:

image

kognise commented 2 years ago

hmm, that's weird! the implication is that some packets just aren't going through - i don't know if it's an issue of them being mutilated, or if they're just being dropped. could you open arpchat on only one device, reproduce one of the issues, and send me a pcap file from that device? if you'd prefer to email it, you can send to hi@kognise.dev.

if the problem is that the packets are being dropped i could try implementing some retry mechanism but it'll be a bit before i feel like doing something like that. in the meantime i am curious what the issue is :)

mrkeuz commented 2 years ago

What I found, on lo interface all ok. History working, all clients displayed correctly.

image

BUT if you choose wlan/eth0 (both clients runs locally) issue reproduced as described above.