bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH] libmachdev: fix net_rcv_msg-messages


From: Justus Winter
Subject: Re: [PATCH] libmachdev: fix net_rcv_msg-messages
Date: Thu, 12 Jun 2014 09:40:46 +0200
User-agent: alot/0.3.4

Quoting Ivan Shmakov (2014-06-11 18:23:02)
> >>>>> Justus Winter <4winter@informatik.uni-hamburg.de> writes:
> 
> […]
> 
>  > @@ -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)
> 
>         While at it, couldn’t the above have been changed to
>         sizeof (*net_msg), BTW?

Ivan, in the time it took you to compose that mail you could have
easily created and send a patch.  Why didn't you ?

Justus



reply via email to

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