summaryrefslogtreecommitdiff
path: root/libmachdev/net.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-26 15:06:21 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-26 15:06:21 +0100
commit4ef693ac89cb514f75fd8643322a36d15474902a (patch)
tree3968f8db46623e0b89ee78b6c0e0fae81ee9060f /libmachdev/net.c
parenta712dbc42369b44556bf11e2c53e7cad8f476c13 (diff)
sync libmachdev
Diffstat (limited to 'libmachdev/net.c')
-rw-r--r--libmachdev/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmachdev/net.c b/libmachdev/net.c
index 7ddf95d9..47e85aac 100644
--- a/libmachdev/net.c
+++ b/libmachdev/net.c
@@ -239,6 +239,7 @@ netif_rx_handle (char *data, int len, struct net_device *dev)
net_msg->msg_hdr.msgh_size =
(((mach_msg_size_t) (sizeof (struct net_rcv_msg)
- sizeof net_msg->sent
+ + sizeof (struct packet_header)
- NET_RCV_MAX + pack_size)) + 3) & ~3;
/* Copy packet into message buffer. */