Re: Padded packets in ip6_input()

2015-03-16 Thread Kristof Provost
On 2015-03-15 16:29:02 (+0300), Andrey V. Elsukov wrote: > This is very rare case, I think, but plen can be zero in case, when > jumbo payload option is present. Probably this is the reason why this > check is done after hop-by-hop options parsing. > You're right, I missed that. The proposed patc

Re: Padded packets in ip6_input()

2015-03-15 Thread Andrey V. Elsukov
On 15.03.2015 09:36, Kristof Provost wrote: > Hi, > > While having a quick look at PR 169630 I wound up looking at what > happens with short IP and IPv6 packets in their input paths. > > On Ethernet frames have to have a minimum size and for both legacy and > modern IP it's possible to have short

Padded packets in ip6_input()

2015-03-14 Thread Kristof Provost
Hi, While having a quick look at PR 169630 I wound up looking at what happens with short IP and IPv6 packets in their input paths. On Ethernet frames have to have a minimum size and for both legacy and modern IP it's possible to have shorter packets. In that case the sender just adds some padding