On 6 May 2016 at 21:25, Jean-Christophe DUBOIS wrote:
> Le 05/05/2016 16:17, Peter Maydell a écrit :
>>
>> On 23 April 2016 at 11:58, Jean-Christophe Dubois
>> wrote:
>>> +if (length < eth_get_l2_hdr_length(data) + sizeof(struct ip_header))
>>> {
>>> return;
>>> }
>>>
>>> -
Le 05/05/2016 16:17, Peter Maydell a écrit :
On 23 April 2016 at 11:58, Jean-Christophe Dubois wrote:
This patch adds:
* based on Eth, UDP, TCP struct present in eth.h instead of hardcoded indexes.
* based on various macros present in eth.h.
* allow to account for optional VLAN header.
T
On 23 April 2016 at 11:58, Jean-Christophe Dubois wrote:
> This patch adds:
> * based on Eth, UDP, TCP struct present in eth.h instead of hardcoded
> indexes.
> * based on various macros present in eth.h.
> * allow to account for optional VLAN header.
This is doing several things:
(1) changi
This patch adds:
* based on Eth, UDP, TCP struct present in eth.h instead of hardcoded indexes.
* based on various macros present in eth.h.
* allow to account for optional VLAN header.
Signed-off-by: Jean-Christophe Dubois
---
net/checksum.c | 83 --