arp: add missing host-to-network conversion

Caused ARP requests from seastar to be dropped.
This commit is contained in:
Tomasz Grabiec
2014-09-25 14:35:43 +02:00
committed by Avi Kivity
parent c5d623265d
commit ec616d7ae5

View File

@@ -114,6 +114,7 @@ arp_for<L3>::make_query_packet(l3addr paddr) {
hdr.sender_paddr = _l3self;
hdr.target_hwaddr = ethernet::broadcast_address();
hdr.target_paddr = paddr;
hton(hdr);
return packet(reinterpret_cast<char*>(&hdr), sizeof(hdr));
}