Re: [PATCH net 2/3] packet: validate variable length ll headers

2016-03-07 Thread Willem de Bruijn
On Fri, Mar 4, 2016 at 3:44 PM, Willem de Bruijn wrote: > From: Willem de Bruijn > > Replace link layer header validation check ll_header_truncate with > more generic dev_validate_header. > > Validation based on hard_header_len incorrectly drops valid packets > in variable length protocols, such

[PATCH net 2/3] packet: validate variable length ll headers

2016-03-04 Thread Willem de Bruijn
From: Willem de Bruijn Replace link layer header validation check ll_header_truncate with more generic dev_validate_header. Validation based on hard_header_len incorrectly drops valid packets in variable length protocols, such as AX25. dev_validate_header calls header_ops.validate for such proto