summaryrefslogtreecommitdiff
path: root/libmachdev
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-09-03 14:57:05 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-09-03 14:57:05 +0200
commit354cf73562f9038298c3be0e7a163c74cbd10ccb (patch)
tree0fa133c85c5a400f3b384f4caf87274020d3cf92 /libmachdev
parent743de54033665ef6139c7c30796b5fb781bfc31f (diff)
update libmachdev from hurd-dde
Diffstat (limited to 'libmachdev')
-rw-r--r--libmachdev/net.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmachdev/net.c b/libmachdev/net.c
index 07bb74a9..e04b5584 100644
--- a/libmachdev/net.c
+++ b/libmachdev/net.c
@@ -243,8 +243,10 @@ netif_rx_handle (char *data, int len, struct net_device *dev)
pack_size = len - sizeof (struct ethhdr);
/* remember message sizes must be rounded up */
- net_msg->msg_hdr.msgh_size = (((mach_msg_size_t) (sizeof(struct net_rcv_msg)
- - NET_RCV_MAX + pack_size)) + 3) & ~3;
+ net_msg->msg_hdr.msgh_size =
+ (((mach_msg_size_t) (sizeof (struct net_rcv_msg)
+ - sizeof net_msg->sent
+ - NET_RCV_MAX + pack_size)) + 3) & ~3;
/* Copy packet into message buffer. */
eh = (struct ether_header *) (net_msg->header);