How to use arp to communicate in a cross-LAN scenario?
First of all, This repo make sense to help us to understand internal of tcp/ip stack, Thanks a lot!!!
I have some problems when reading this repo's code.
- The arp demo can only communicate in LAN, how to communicate in a cross-LAN scenario?
- When payload of icmp packet is greater than 4096,how to receive icmp reply with many packet segments?I have tried to set MsgFlags::WAIT_ALL in
recvfrombut got error.
I am very appreciate if you answer these questions or give me some train of thoughts.
@iamazy Thank you for the issue.
The arp demo can only communicate in LAN, how to communicate in a cross-LAN scenario?
I think ARP only works between devices in the same IP subnet, but I don't have a clear understanding of the details either because I am learning it.
When payload of icmp packet is greater than 4096,how to receive icmp reply with many packet segments?I have tried to set MsgFlags::WAIT_ALL in recvfrom but got error.
You can extend the capacity of a vector here.
https://github.com/TaKO8Ki/chibiip/blob/e20dbdf201561035109abf881487866647331c90/src/socket.rs#L82
I think set fixed size is not final solution, I will try another linux recv api, thanks again!!!