commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 08/12: libmachdev: fix size of `net_rcv_msg' message


From: Samuel Thibault
Subject: [hurd] 08/12: libmachdev: fix size of `net_rcv_msg' message
Date: Wed, 10 Dec 2014 15:16:59 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch dde
in repository hurd.

commit 92c8444efa72369aaa872ba9cdb4815141839017
Author: Justus Winter <address@hidden>
Date:   Wed Nov 26 14:50:57 2014 +0100

    libmachdev: fix size of `net_rcv_msg' message
    
    Account for the `struct packet_header' that is prepended to the
    network packet in the calculation of the `net_rcv_msg' message.  This
    complements e363aa56.
    
    * libmachdev/net.c (netif_rx_handle): Fix size of message.
---
 libmachdev/net.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libmachdev/net.c b/libmachdev/net.c
index 5a5cd5d..e04fa80 100644
--- a/libmachdev/net.c
+++ b/libmachdev/net.c
@@ -241,6 +241,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.  */

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]