Re: [PATCH] libmachdev: fix net_rcv_msg-messages

2014-06-12 Thread Justus Winter
Quoting Ivan Shmakov (2014-06-11 18:23:02) > > Justus Winter <4win...@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

Re: [PATCH] libmachdev: fix net_rcv_msg-messages

2014-06-11 Thread Ivan Shmakov
> Justus Winter <4win...@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 = (

Re: [PATCH] libmachdev: fix net_rcv_msg-messages

2014-06-11 Thread Samuel Thibault
Justus Winter, le Tue 10 Jun 2014 11:47:00 +0200, a écrit : > Previously, all net_rcv_msg-messages sent by netif_rx_handle were > malformed. It never was a problem in practice, since the messages are > not complex and thus the kernel does not try to parse the message. > > struct net_rcv_msg conta

[PATCH] libmachdev: fix net_rcv_msg-messages

2014-06-10 Thread Justus Winter
Previously, all net_rcv_msg-messages sent by netif_rx_handle were malformed. It never was a problem in practice, since the messages are not complex and thus the kernel does not try to parse the message. struct net_rcv_msg contains an additional field of type boolean_t. This field has no associat