summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-08-13 09:29:25 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-08-13 09:29:25 +0200
commit6f94e0aed01aacc7e0dce031aeb017698e3eab59 (patch)
tree79bd0cbfaff9867e3d5be06effc85a634464d0d0 /src
parent866af57a242942efffeec99f20b9a355047fe5c5 (diff)
downloadabaos-6f94e0aed01aacc7e0dce031aeb017698e3eab59.tar.gz
abaos-6f94e0aed01aacc7e0dce031aeb017698e3eab59.tar.bz2
calculating correct size of an ARP reply packet
Diffstat (limited to 'src')
-rw-r--r--src/kernel/kernel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c
index 4d138a6..7796d34 100644
--- a/src/kernel/kernel.c
+++ b/src/kernel/kernel.c
@@ -492,6 +492,7 @@ void handle_network_event( network_event_t *event, void *context )
network_ipv4_address_t tmp = arp->destination_protocol_address;
arp->destination_protocol_address = arp->source_protocol_address;
arp->source_protocol_address = tmp;
+ event->buf.length = sizeof( network_ethernet_packet_header_t ) + sizeof( network_arp_packet_t );
((network_vtable_t *)( global_context.network->base.vtable ))->send( global_context.network, event->buf );
}