mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-11 13:22:33 +00:00
app/ping: fix destination MAC on ARP replies
The ARP destination MAC was set to the Ethernet source MAC which is not necessarily the MAC of the other ARP peer. Instead use the ARP source MAC of the ARP request.
This commit is contained in:
parent
3016b64fac
commit
a73ef9fc06
@ -481,7 +481,7 @@ void Main::_send_arp_reply(Ethernet_frame &req_eth,
|
||||
arp.opcode(Arp_packet::REPLY);
|
||||
arp.src_mac(_nic.mac());
|
||||
arp.src_ip(ip_config().interface.address);
|
||||
arp.dst_mac(req_eth.src());
|
||||
arp.dst_mac(req_arp.src_mac());
|
||||
arp.dst_ip(req_arp.src_ip());
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user